Skip to content

Commit 79f1e97

Browse files
committed
fix OSX bug with _MEIPASS location
1 parent 7501e69 commit 79f1e97

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

spmt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import os
44
import sys
55
import time
6-
sys.path.append(os.path.join(os.path.dirname(__file__), 'src'))
76

87

98
if __name__ == '__main__':
@@ -24,6 +23,7 @@
2423

2524
if getattr( sys, 'frozen', False ) :
2625
# running in a bundle
26+
sys.path.append(os.path.join(os.path.dirname(__file__), 'src'))
2727
imgDir = os.path.join(sys._MEIPASS, 'img')
2828

2929
# if linux export qt plugins path
@@ -32,6 +32,7 @@
3232

3333
else:
3434
# running live
35+
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'src'))
3536
imgDir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'img')
3637

3738
from PyQt5.QtWidgets import QApplication

src/version.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"number": "0.4.0",
3-
"tag": "a",
4-
"comments": ["v4 update"]
3+
"tag": "b",
4+
"comments": ["OSX fix: sys._MEIPASS in bundle"]
55
}

0 commit comments

Comments
 (0)