aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lvc/resources/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lvc/resources/__init__.py b/lvc/resources/__init__.py
index 005041d..1590cfd 100644
--- a/lvc/resources/__init__.py
+++ b/lvc/resources/__init__.py
@@ -2,9 +2,11 @@ import os.path
import glob
import sys
+
def image_path(name):
return os.path.join(resources_dir(), 'images', name)
+
def converter_scripts():
return glob.glob(os.path.join(resources_dir(), 'converters', '*.py'))
@@ -16,6 +18,7 @@ def resources_dir():
directory = os.path.dirname(__file__)
return os.path.abspath(directory)
+
def in_py2exe():
- return (hasattr(sys,"frozen") and
+ return (hasattr(sys, "frozen") and
sys.frozen in ("windows_exe", "console_exe"))