Skip to content

Commit

Permalink
🎉 exec file initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Achraf KHAZRI authored and Achraf KHAZRI committed Sep 14, 2019
1 parent 2a50d6a commit 362d722
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 0 deletions.
24 changes: 24 additions & 0 deletions gmg.py
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 !")
35 changes: 35 additions & 0 deletions setup_linux.py
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])
37 changes: 37 additions & 0 deletions setup_win.py
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])

0 comments on commit 362d722

Please sign in to comment.