Modified get_data method for use with executable. Got a first version of Facemovie for windows

This commit is contained in:
2012-09-03 17:15:17 +02:00
parent a78493ebf2
commit df2f56529f
3 changed files with 9 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
import wx
import os
import sys
from ivolution.gui import IvolutionWindow
# Trying to create personal folder if needed

View File

@@ -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)

View File

@@ -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