Mercurial > hg > webaudioevaluationtool
diff python/pythonServer.py @ 3028:9a201c63a0eb
Implementation for #231
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Tue, 19 Sep 2017 20:26:54 +0300 |
parents | b09e9b7ef246 |
children | b3230c0da598 |
line wrap: on
line diff
--- a/python/pythonServer.py Thu Sep 14 13:14:00 2017 +0100 +++ b/python/pythonServer.py Tue Sep 19 20:26:54 2017 +0300 @@ -13,6 +13,7 @@ import copy import string import random +import errno if sys.version_info[0] == 2: # Version 2.x @@ -28,6 +29,12 @@ scriptdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) # script directory os.chdir(scriptdir) # does this work? +try: + os.makedirs("../saves") +except OSError as e: + if e.errno != errno.EEXIST: + raise + PSEUDO_PATH = '../tests/' pseudo_files = [] pseudo_index = 0