-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added executable compilation for Mac and win
- Loading branch information
Nabil Alikhan
authored and
Nabil Alikhan
committed
Jul 4, 2017
1 parent
56a9372
commit 30f0cf5
Showing
7 changed files
with
15 additions
and
7 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
Binary file not shown.
Binary file not shown.
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 @@ | ||
pyinstaller -n GrapeTree_mac --onefile --icon=GT_icon.icns --add-binary binaries/edmonds-osx;binaries/ --add-binary binaries/fastme-2.1.5-osx;binaries/ --add-data grapetree/templates/;grapetree/templates/ main.py |
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 @@ | ||
pyinstaller -n GrapeTree_win --onefile --icon=GT_icon.ico --add-binary binaries/edmonds.exe;binaries/ --add-binary binaries/fastme.exe;binaries/ --add-data grapetree/templates/;grapetree/templates/ main.py |
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 |
---|---|---|
@@ -1,7 +1,15 @@ | ||
from flask import Flask | ||
import config | ||
import sys | ||
import os | ||
|
||
if getattr(sys, 'frozen', False): | ||
template_folder = os.path.join(sys._MEIPASS, 'grapetree','templates') | ||
static_folder = os.path.join(sys._MEIPASS, 'static') | ||
app = Flask(__name__, template_folder=template_folder, static_folder=static_folder) | ||
else: | ||
app = Flask(__name__, static_folder='../static') | ||
|
||
app = Flask(__name__, static_folder='../static') | ||
app.config.from_object(config) | ||
|
||
from grapetree import views |
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