From 8c9914850e9987d4f05e8b88dedb058ffbb4f53f Mon Sep 17 00:00:00 2001 From: DH4 Date: Fri, 23 Jun 2017 02:39:56 -0500 Subject: cx_freeze Path Updates --- mainwindow.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'mainwindow.py') diff --git a/mainwindow.py b/mainwindow.py index e1553f6..d21ca49 100644 --- a/mainwindow.py +++ b/mainwindow.py @@ -63,9 +63,7 @@ class MainWindow(QtGui.QMainWindow): LoadDefaultSettings(self) self.presetManager = PresetManager( uic.loadUi( - os.path.join(os.path.dirname(os.path.realpath(__file__)), - 'presetmanager.ui')), - self) + os.path.join(self.core.wd, 'presetmanager.ui')), self) if not os.path.exists(self.dataDir): os.makedirs(self.dataDir) @@ -143,7 +141,7 @@ class MainWindow(QtGui.QMainWindow): window.spinBox_aBitrate.valueChanged.connect(self.updateCodecSettings) self.previewWindow = PreviewWindow(self, os.path.join( - os.path.dirname(os.path.realpath(__file__)), "background.png")) + self.core.wd, "background.png")) window.verticalLayout_previewWrapper.addWidget(self.previewWindow) # Make component buttons -- cgit v1.2.3