-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Top-level script is not optimized under py2exe.
Fixes #12
- Loading branch information
Showing
3 changed files
with
33 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/python | ||
# | ||
# Launcher when running py2exe | ||
|
||
import sys | ||
getattr(sys, 'frozen') # Only intended to be run under py2exe | ||
|
||
# By deault py2exe tries to write log to dirname(sys.executable) which fails when installed | ||
from os.path import join | ||
import tempfile | ||
from config import appname | ||
sys.stderr = open(join(tempfile.gettempdir(), '%s.log' % appname), 'wt') | ||
|
||
import Tkinter as tk | ||
from EDMarketConnector import AppWindow | ||
|
||
# Run the app | ||
root = tk.Tk() | ||
app = AppWindow(root) | ||
root.mainloop() |