mirror of
https://github.com/jlengrand/Ivolution.git
synced 2026-03-10 08:21:18 +00:00
Modified get_data method for use with executable. Got a first version of Facemovie for windows
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import wx
|
||||
import os
|
||||
import sys
|
||||
from ivolution.gui import IvolutionWindow
|
||||
|
||||
# Trying to create personal folder if needed
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user