mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-27 05:21:09 -05: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):
|
if os.path.isfile(VERSION_FILE):
|
||||||
from src.version import version
|
from src.version import version
|
||||||
else:
|
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:
|
try:
|
||||||
os.unlink(VERSION_FILE)
|
os.unlink(VERSION_FILE)
|
||||||
except OSError: # Does not exist
|
except OSError: # Does not exist
|
||||||
|
Loading…
x
Reference in New Issue
Block a user