diff options
| author | DH4 | 2017-06-23 02:39:56 -0500 |
|---|---|---|
| committer | DH4 | 2017-06-23 02:39:56 -0500 |
| commit | 8c9914850e9987d4f05e8b88dedb058ffbb4f53f (patch) | |
| tree | 4a188c0104bc270d033656e6af796686cc727d03 /core.py | |
| parent | 60d62599f785167f4c976a92fd8f19fbee4a363d (diff) | |
cx_freeze Path Updates
Diffstat (limited to 'core.py')
| -rw-r--r-- | core.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -22,7 +22,13 @@ class Core(): self.dataDir = QDesktopServices.storageLocation( QDesktopServices.DataLocation) self.presetDir = os.path.join(self.dataDir, 'presets') - self.wd = os.path.dirname(os.path.realpath(__file__)) + if getattr(sys, 'frozen', False): + # frozen + self.wd = os.path.dirname(sys.executable) + else: + # unfrozen + self.wd = os.path.dirname(os.path.realpath(__file__)) + self.loadEncoderOptions() self.videoFormats = Core.appendUppercase([ '*.mp4', |
