mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Fix time namespaces in setup.py when version file is unavailable
This commit is contained in:
parent
2242aadde9
commit
69e1b6f0da
2
setup.py
2
setup.py
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user