Commit 3922e6a7 authored by kpetersn's avatar kpetersn
Browse files

Switched to anaconda3 and upgraded commented-out print statements for python3 syntax.

parent 1fdab421
#!/APSshare/anaconda/x86_64/bin/python
#!/APSshare/anaconda3/x86_64/bin/python
#
# Generate alias statements for each record in a database.
#
......@@ -17,9 +17,9 @@ def main(dbName):
for line in dbfd:
if recTest.match(line):
recName = recNmTest.search(line).groups()[0]
#!print recName
#!print(recName)
aliasName = "A)".join(recName.split(")"))
#!print aliasName
#!print(aliasName)
aliasLine = 'alias("{0}", "{1}")'.format(recName, aliasName)
print(aliasLine)
......@@ -29,8 +29,8 @@ if __name__ == '__main__':
parser = ap.ArgumentParser()
parser.add_argument("db", help="EPICS database containing records to be aliased")
args = parser.parse_args()
#!print args
#!print args.db
#!print(args)
#!print(args.db)
if os.path.isfile(args.db):
main(args.db)
......
Markdown is supported
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