Skip to content
Permalink
Browse files

Tweaks to build

  • Loading branch information...
Ebag333 committed Jun 3, 2017
1 parent 61c826f commit bf171fc643b14999ea59b2c6cf4f11f96676b8f2
Showing with 13 additions and 10 deletions.
  1. +6 −1 dist_assets/mac/pyfa.spec
  2. +6 −1 dist_assets/mac/pyfa_debug.spec
  3. +1 −8 pyfa.py
@@ -41,6 +41,11 @@ for root, folders, files in os.walk("eos/effects"):
)
import_these.append(mod_name)

excluded_modules = [
'setup',
'setup-osx',
]

a = Analysis(
['pyfa.py'],
pathex=['$TRAVIS_BUILD_DIR'],
@@ -49,7 +54,7 @@ a = Analysis(
hiddenimports=import_these,
hookspath=[],
runtime_hooks=[],
excludes=[],
excludes=excluded_modules,
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
@@ -41,6 +41,11 @@ for root, folders, files in os.walk("eos/effects"):
)
import_these.append(mod_name)

excluded_modules = [
'setup',
'setup-osx',
]

a = Analysis(
['pyfa.py'],
pathex=['$TRAVIS_BUILD_DIR'],
@@ -49,7 +54,7 @@ a = Analysis(
hiddenimports=import_these,
hookspath=[],
runtime_hooks=[],
excludes=[],
excludes=excluded_modules,
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
@@ -412,14 +412,7 @@ def handleGUIException(exc_type, exc_value, exc_traceback):
from gui.mainFrame import MainFrame

pyfalog.debug("Creating wx application.")
try:
pyfa = wx.App(False)
except Exception as e:
pyfalog.error("Failed to initialize wx.App")
pyfalog.trace(e)
pyfalog.debug(repr(pyfa))
finally:
pyfalog.debug(repr(pyfa))
pyfa = wx.App(False)

pyfalog.debug("Creating GUI main frame.")
MainFrame(options.title)

0 comments on commit bf171fc

Please sign in to comment.
You can’t perform that action at this time.