Skip to content

Commit

Permalink
More mac binary stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jkarns275 committed Mar 2, 2021
1 parent 0fbbbdc commit df3a0fa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion hapiest.spec
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,16 @@ exe = EXE(pyz,
debug=False,
strip=False,
upx=True,
console=True )
console=False )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
name='hapiest')
app = BUNDLE(exe,
name='hapiest.app',
icon='res/img/icons/icon.png',
bundle_identifier=None)

2 changes: 1 addition & 1 deletion layouts/fetch_widget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; color:#ff2600;&quot;&gt;NOTE: listed parameters and groups are not neccissarily all available this molecule - filtering of unavailable parameters will be added ASAP.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; color:#ff2600;&quot;&gt;NOTE: listed parameters and groups are not necessarily all available this molecule - filtering of unavailable parameters will be added ASAP.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="wordWrap">
<bool>true</bool>
Expand Down
7 changes: 6 additions & 1 deletion src/startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import os
import re
import sys
import pathlib


def check_version():
Expand All @@ -24,8 +25,12 @@ def fix_cwd():
directory is in the wrong place. This moves it to where it should be.
"""
# If this is a binary
print("AAA")
print(os.getcwd())
if getattr(sys, 'frozen', False):
return
p = pathlib.Path(sys.argv[0])
parent = p.parent
os.chdir(parent)

src_regex = re.compile('.+src\\Z')
if src_regex.match(os.getcwd()):
Expand Down

0 comments on commit df3a0fa

Please sign in to comment.