use sys.exit() instead of the removed error() function

This commit is contained in:
Axel Kohlmeyer
2019-01-14 14:13:40 -05:00
parent 59559f74e6
commit c3a15e221d
5 changed files with 16 additions and 13 deletions

View File

@ -59,7 +59,8 @@ homepath = fullpath(".")
homedir = "%s/%s" % (homepath,version)
if (pathflag):
if not os.path.isdir(voropath): error("Voro++ path does not exist")
if not os.path.isdir(voropath):
sys.exit("Voro++ path %s does not exist" % voropath)
homedir = voropath
# download and unpack Voro++ tarball