Commit cea0855f authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

small programming style cleanup

parent d01c2800
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
+1 −1
Original line number Diff line number Diff line
@@ -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)
+1 −1
Original line number Diff line number Diff line
@@ -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)
+1 −1
Original line number Diff line number Diff line
@@ -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)
+1 −1
Original line number Diff line number Diff line
@@ -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