-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
31 lines (25 loc) · 1.11 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import cx_Freeze
import sys
import os
from tkinter import *
import threading
import time
from tkinter import messagebox
from sys import exit as Stp
from openpyxl import load_workbook
from openpyxl.cell import column_index_from_string as ColToInt
from matplotlib import pyplot as plt
os.environ['TCL_LIBRARY'] = "C:\\Users\\Advait\\AppData\\Local\\Programs\\Python\\Python35\\tcl\\tcl8.6"
os.environ['TK_LIBRARY'] = "C:\\Users\\Advait\\AppData\\Local\\Programs\\Python\\Python35\\tcl\\tk8.6"
base = None
if sys.platform == 'win32':
base = "Win32GUI"
execu = [cx_Freeze.Executable("Barcode Scanner Interface.py", base=base)]
opt = {'build_exe': {"packages": ["tkinter", "threading", "time", "openpyxl", "matplotlib"], "include_files":["icon.ico", "Attendance.xlsx", "C:\\Users\\Advait\\AppData\\Local\\Programs\\Python\\Python35\\DLLs\\tcl86t.dll", "C:\\Users\\Advait\\AppData\\Local\\Programs\\Python\\Python35\\DLLs\\tk86t.dll"]}}
cx_Freeze.setup(
name="Barcode Scanner Interface",
options=opt,
version="1.0",
description="Tool to track attendance using barcodes from student cards.",
executables=execu
)