small programming style cleanup

This commit is contained in:
Axel Kohlmeyer 2019-01-14 17:47:58 -05:00
parent d01c28002f
commit cea0855fe4
5 changed files with 5 additions and 5 deletions

View File

@ -69,7 +69,7 @@ version = args.version
suffixflag = args.machine != None
suffix = args.machine
if (pathflag):
if pathflag:
lattedir = args.path
if not os.path.isdir(lattedir): sys.exit("LATTE path %s does not exist" % lattedir)
lattedir = fullpath(lattedir)

View File

@ -72,7 +72,7 @@ tardir = "MSCG-release-%s" % mscgver
homepath = fullpath('.')
homedir = "%s/%s" % (homepath,tardir)
if (pathflag):
if pathflag:
if not os.path.isdir(mscgpath):
sys.exit("MS-CG path %s does not exist" % mscgpath)
homedir = fullpath(mscgpath)

View File

@ -60,7 +60,7 @@ version = args.version
homepath = fullpath(".")
scafacospath = "%s/scafacos-%s" % (homepath,version)
if (pathflag):
if pathflag:
scafacospath = args.path
if not os.path.isdir("%s/include" % scafacospath):
sys.exit("ScaFaCoS include path for %s does not exist" % scafacospath)

View File

@ -63,7 +63,7 @@ buildflag = args.build
pathflag = args.path != None
version = args.version
if (pathflag):
if pathflag:
eigenpath = args.path
if not os.path.isdir(eigenpath): sys.exit("Eigen path %s does not exist" % eigenpath)
eigenpath = fullpath(eigenpath)

View File

@ -63,7 +63,7 @@ voropath = args.path
homepath = fullpath(".")
homedir = "%s/%s" % (homepath,version)
if (pathflag):
if pathflag:
if not os.path.isdir(voropath):
sys.exit("Voro++ path %s does not exist" % voropath)
homedir = voropath