|
@@ -131,11 +131,13 @@ class App(QtCore.QObject):
|
|
|
json.dump([], f)
|
|
json.dump([], f)
|
|
|
f.close()
|
|
f.close()
|
|
|
|
|
|
|
|
- # Application directory. Chdir to it.
|
|
|
|
|
- self.app_home = os.path.dirname(os.path.realpath(__file__))
|
|
|
|
|
- App.log.debug("Application path is " + self.app_home)
|
|
|
|
|
- App.log.debug("Started in " + os.getcwd())
|
|
|
|
|
- os.chdir(self.app_home)
|
|
|
|
|
|
|
+ # Application directory. Chdir to it. Otherwise, trying to load
|
|
|
|
|
+ # GUI icons will fail as thir path is relative.
|
|
|
|
|
+ # This will fail under cx_freeze ...
|
|
|
|
|
+ # self.app_home = os.path.dirname(os.path.realpath(__file__))
|
|
|
|
|
+ # App.log.debug("Application path is " + self.app_home)
|
|
|
|
|
+ # App.log.debug("Started in " + os.getcwd())
|
|
|
|
|
+ # os.chdir(self.app_home)
|
|
|
|
|
|
|
|
####################
|
|
####################
|
|
|
## Initialize GUI ##
|
|
## Initialize GUI ##
|