aboutsummaryrefslogtreecommitdiffstats
path: root/lvc
diff options
context:
space:
mode:
authorJesús Eduardo <heckyel@hyperbola.info>2018-01-17 14:36:56 -0500
committerJesús Eduardo <heckyel@hyperbola.info>2018-01-17 14:36:56 -0500
commita777ac1342ef09e26250352c5a7a290ee3d65dcd (patch)
tree97bd69dd52d7b1d22c32aea96909b7cd9ea16823 /lvc
parent403cc9605ffce315cb9476b044dbc0877c546dbd (diff)
downloadlibrevideoconverter-a777ac1342ef09e26250352c5a7a290ee3d65dcd.tar.lz
librevideoconverter-a777ac1342ef09e26250352c5a7a290ee3d65dcd.tar.xz
librevideoconverter-a777ac1342ef09e26250352c5a7a290ee3d65dcd.zip
pep8 en lvc/resources/__init__.py
Diffstat (limited to 'lvc')
-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"))