-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Achraf KHAZRI
authored and
Achraf KHAZRI
committed
Sep 14, 2019
1 parent
2a50d6a
commit 362d722
Showing
3 changed files
with
96 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
""" Executable. | ||
Links: | ||
Author: Achraf KHAZRI | ||
Project: GMG | ||
""" | ||
|
||
import sys | ||
import argparse | ||
import os | ||
import glob | ||
|
||
# Arguments | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument('--mode', '-mode', help="Classifier mode : task or train", type= str) | ||
|
||
|
||
# Get args | ||
args = parser.parse_args() | ||
|
||
if args.mode == "task": | ||
|
||
print("Hello GMG !") |
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,35 @@ | ||
from cx_Freeze import setup, Executable | ||
import os | ||
|
||
# Extra files | ||
include_files = [] | ||
|
||
# Including libs | ||
includes = [] | ||
|
||
# Unnecessary libs | ||
excludes = [] | ||
|
||
bin_includes = [] | ||
# ,'idna.idnadata' | ||
# Packages | ||
packages = [] | ||
|
||
# Optimization level | ||
optimize = 0 | ||
|
||
# If true, only errors and warning will be displayed when excuting cx_freeze | ||
silent = True | ||
|
||
|
||
target = Executable( | ||
script = "gmg.py", | ||
copyright= "Copyright © 2019 GMG", | ||
) | ||
|
||
|
||
setup(name = "Guide_Me_Glasses", | ||
version = "0.1" , | ||
description = "" , | ||
options = {'build_exe': {'includes':includes,'excludes':excludes,'bin_includes':bin_includes, 'packages':packages, 'include_files':include_files, 'optimize':1, 'silent':silent}}, | ||
executables = [target]) |
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,37 @@ | ||
from cx_Freeze import setup, Executable | ||
import os | ||
|
||
# Extra files | ||
include_files = [] | ||
|
||
# Including libs | ||
includes = [] | ||
|
||
# Unnecessary libs | ||
excludes = [] | ||
# Packages | ||
packages = [] | ||
|
||
# Optimization level | ||
optimize = 1 | ||
|
||
# If true, only errors and warning will be displayed when excuting cx_freez | ||
silent = True | ||
|
||
|
||
PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os.__file__)) | ||
os.environ['TCL_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tcl8.6') | ||
os.environ['TK_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tk8.6') | ||
|
||
|
||
target = Executable( | ||
script = "gmg.py", | ||
copyright= "Copyright © 2019 gmg", | ||
) | ||
|
||
|
||
setup(name = "Guide_Me_Glasses", | ||
version = "0.1" , | ||
description = "Smart glasses" , | ||
options = {'build_exe': {'includes':includes,'excludes':excludes,'packages':packages,'include_files':include_files, 'optimize':1, 'silent':silent}}, | ||
executables = [target]) |