We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35e20a2 commit acf0973Copy full SHA for acf0973
1 file changed
IsotopeDistributionCalculator.py
@@ -98,13 +98,14 @@ def normpdf(*args):
98
def resource_path(relative_path):
99
""" Get absolute path to resource, works for dev and for PyInstaller """
100
if getattr(sys, 'frozen', False): # frozen
101
- base_path = os.path.dirname(os.path.realpath(sys.executable))
+ base_path = sys._MEIPASS
102
else: # unfrozen
103
- base_path = os.path.dirname(os.path.realpath(__file__))
+ base_path = os.path.dirname(os.path.abspath(__file__))
104
105
return os.path.join(base_path, relative_path)
106
107
APP_NAME = 'Isotope Distribution Calculator'
108
+
109
APP_ICON = resource_path('Atom.ico')
110
DRAW_ICON = resource_path('Bina-pencil-green.png')
111
ANNOTATE_THRESHOLD = 2.0
0 commit comments