aboutsummaryrefslogtreecommitdiff
path: root/mainwindow.py
diff options
context:
space:
mode:
authorDH42017-06-23 02:39:56 -0500
committerDH42017-06-23 02:39:56 -0500
commit8c9914850e9987d4f05e8b88dedb058ffbb4f53f (patch)
tree4a188c0104bc270d033656e6af796686cc727d03 /mainwindow.py
parent60d62599f785167f4c976a92fd8f19fbee4a363d (diff)
cx_freeze Path Updates
Diffstat (limited to 'mainwindow.py')
-rw-r--r--mainwindow.py6
1 files changed, 2 insertions, 4 deletions
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