Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gino Tosti
pygen
Commits
dd3e2bb7
Commit
dd3e2bb7
authored
Jun 25, 2021
by
Gino Tosti
Browse files
typos corrected
parent
024147b4
Changes
4
Hide whitespace changes
Inline
Side-by-side
test/AMC_ICD_Table.xlsx
deleted
100755 → 0
View file @
024147b4
File deleted
test/genDevice.py
View file @
dd3e2bb7
...
...
@@ -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"
)
test/myDeviceInterfaces.xls
deleted
100755 → 0
View file @
024147b4
File deleted
test/testDeviceInterfaces.xls
deleted
100755 → 0
View file @
024147b4
File deleted
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment