Commit dd3e2bb7 authored by Gino Tosti's avatar Gino Tosti
Browse files

typos corrected

parent 024147b4
......@@ -10,6 +10,7 @@ import subprocess
from GenDevice.genFromTemplates import genFromTemplates
from GenDevice.createEmptyCDB import *
from GenDevice.acsUtils import *
import pandas as pd
if __name__ =="__main__":
parser = OptionParser()
......@@ -35,7 +36,7 @@ if __name__ =="__main__":
print ("ACS Enviroment is not set")
exit()
pwd=os.getcwd()
excel_file =options.book_file
excel_file =options.bookfile
wb=excelIcd(excel_file)
devs=wb.MainSheet['Device Name']
comp=wb.MainSheet['Component Name']
......@@ -65,42 +66,30 @@ if __name__ =="__main__":
if options.install :
introot = os.environ["INTROOT"]
if introot=="":
print("INTROOT variable is not set")
exit()
os.chdir(mygen._dirs['src'])
print ("Make Build ")
command="make clean all"
print (command)
if execACSCommand(command):
print ("ERROR executing: ",command,)
os.chdir(pwd)
print("INTROOT variable is not set")
else:
os.chdir(mygen._dirs['src'])
print ("Make Build ")
command="make clean all"
print (command)
if execACSCommand(command):
print ("ERROR executing: ",command)
os.chdir(pwd)
else:
mygen=genFromTemplates(options.book_file,options.prefix,options.module,options.basedir)
mygen=genFromTemplates(options.bookfile,options.prefix,options.module,options.basedir)
mygen.generateFileInDir()
if options.install :
introot = os.environ["INTROOT"]
if introot=="":
print("INTROOT variable is not set")
exit()
os.chdir(mygen._dirs['src'])
print ("Make Build ")
command="make clean all"
print (command)
if execACSCommand(command):
print ("ERROR executing: ",command,)
os.chdir(pwd)
"""else:
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("INTROOT variable is not set")
else:
os.chdir(mygen._dirs['src'])
print ("Make Build ")
command="make clean all"
print (command)
if execACSCommand(command):
print ("ERROR executing: ",command)
os.chdir(pwd)
print ("ALL Done")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment