more python 3 compatibility

This commit is contained in:
Axel Kohlmeyer
2022-02-23 12:30:03 -05:00
parent 5594868ef2
commit 2d7375798f
8 changed files with 69 additions and 67 deletions

View File

@ -18,7 +18,7 @@ from dump import dump
from pdbfile import pdbfile
if len(sys.argv) != 8 and len(sys.argv) != 9:
raise StandardError, "Syntax: dump2pdb.py dumpfile Nid Ntype Nx Ny Nz pdbfile template"
sys.exit("Syntax: dump2pdb.py dumpfile Nid Ntype Nx Ny Nz pdbfile template")
dumpfile = sys.argv[1]
nid = int(sys.argv[2])