Mercurial > hg > webaudioevaluationtool
changeset 3066:aae564b49b5a
Close #196
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Tue, 31 Oct 2017 17:20:49 +0000 |
parents | b3230c0da598 |
children | ffd7042c64b2 |
files | python/pythonServer.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/python/pythonServer.py Tue Oct 31 17:14:23 2017 +0000 +++ b/python/pythonServer.py Tue Oct 31 17:20:49 2017 +0000 @@ -70,8 +70,6 @@ lenSt = len(st) fmt = st[lenSt-1].rsplit('.') fmt = fmt[len(fmt)-1] - print(st) - print(fmt) fpath = "../"+urllib2.unquote(s.path) size = os.path.getsize(fpath) fileDump = open(fpath, mode='rb') @@ -197,7 +195,8 @@ curSaveIndex += 1 curFileName = 'test-'+str(curSaveIndex)+'.xml' if update == False: - os.remove("../saves/update-"+filename) + if(os.path.isfile("../saves/update-"+filename)): + os.remove("../saves/update-"+filename) def testSave(self): self.send_response(200)