Final 8.2 for Windows. Removed cd into app folder.
This commit is contained in:
@@ -131,11 +131,13 @@ class App(QtCore.QObject):
|
|||||||
json.dump([], f)
|
json.dump([], f)
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
# Application directory. Chdir to it.
|
# Application directory. Chdir to it. Otherwise, trying to load
|
||||||
self.app_home = os.path.dirname(os.path.realpath(__file__))
|
# GUI icons will fail as thir path is relative.
|
||||||
App.log.debug("Application path is " + self.app_home)
|
# This will fail under cx_freeze ...
|
||||||
App.log.debug("Started in " + os.getcwd())
|
# self.app_home = os.path.dirname(os.path.realpath(__file__))
|
||||||
os.chdir(self.app_home)
|
# 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 ##
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ from descartes.patch import PolygonPatch
|
|||||||
|
|
||||||
import simplejson as json
|
import simplejson as json
|
||||||
# TODO: Commented for FlatCAM packaging with cx_freeze
|
# TODO: Commented for FlatCAM packaging with cx_freeze
|
||||||
from matplotlib.pyplot import plot, subplot
|
#from matplotlib.pyplot import plot, subplot
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user