diff --git a/Ivolutioner b/Ivolutioner index a08db0c..bf6f9de 100755 --- a/Ivolutioner +++ b/Ivolutioner @@ -2,6 +2,7 @@ import wx import os +import sys from ivolution.gui import IvolutionWindow # Trying to create personal folder if needed diff --git a/ivolution/__init__.py b/ivolution/__init__.py index ad10a6a..d9daeac 100644 --- a/ivolution/__init__.py +++ b/ivolution/__init__.py @@ -7,7 +7,13 @@ """ import os +import sys + +if hasattr(sys, 'frozen'): + _ROOT = os.path.split(sys.executable)[0] +else: + _ROOT = os.path.abspath(os.path.dirname(__file__)) -_ROOT = os.path.abspath(os.path.dirname(__file__)) def get_data(path): + print os.path.join(_ROOT, 'data', path) return os.path.join(_ROOT, 'data', path) diff --git a/ivolution/gui/IvolutionWindow.py b/ivolution/gui/IvolutionWindow.py index 6a28edd..70a3b40 100644 --- a/ivolution/gui/IvolutionWindow.py +++ b/ivolution/gui/IvolutionWindow.py @@ -65,8 +65,8 @@ class IvolutionWindow(IvolutionTemplate, Observer, Observable): """ self.videospeedlistChoices = [u"slow", u"medium", u"fast"] self.gaugerange = 100 - self.root_fo = "" + self.mode = "crop" # type of video to be created self.sort = "name" # how image files will be chronologically sorted self.speed = 1 # Speed of the movie