Fix time namespaces in setup.py when version file is unavailable

This commit is contained in:
Alexandre Gauthier 2018-08-03 07:44:23 -04:00 committed by Valentin Lorentz
parent 2242aadde9
commit 69e1b6f0da

View File

@ -66,7 +66,7 @@ except:
if os.path.isfile(VERSION_FILE):
from src.version import version
else:
version = 'installed on ' + strftime("%Y-%m-%dT%H-%M-%S", gmtime())
version = 'installed on ' + time.strftime("%Y-%m-%dT%H-%M-%S", time.gmtime())
try:
os.unlink(VERSION_FILE)
except OSError: # Does not exist