Newer
Older
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
31
32
33
34
35
36
37
38
from GenDevice import acsUtils, genDeviceGui
import os,sys
if __name__ =="__main__":
pwd=os.getcwd()
gendir=os.environ["PYGEN"]
if gendir=="":
print ("Please set the env variable PYGEN = the Geneartor root directory")
exit()
if not acsUtils.checkACS():
print ("ACS Enviroment is not set")
exit()
introot = os.environ["INTROOT"]
if introot=="":
print("INTROOT variable is not set")
exit()
os.chdir(gendir)
window=genDeviceGui.myWindow('Device Code Generator v1.0 by GT@astri')
genDeviceGui.mainLoop(window)
window.close()
os.chdir(pwd)
"""
command ="make install"
if execACSCommand(command):
print ("ERROR executing: ",command)
os.chdir(pwd)
exit()
os.chdir(pwd)
command="cdbChecker"
if execACSCommand(command):
print ("ERROR executing: ",command)
exit()
"""
print ("ALL Done")