mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Being even nicer to Windows.
This commit is contained in:
parent
0f350eefe5
commit
0c303de664
@ -151,6 +151,7 @@ class PeriodicFileDownloader(object):
|
|||||||
toFilename = os.path.join(conf.dataDir, filename)
|
toFilename = os.path.join(conf.dataDir, filename)
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
# Windows, grrr...
|
# Windows, grrr...
|
||||||
|
if os.path.exists(toFilename):
|
||||||
os.remove(toFilename)
|
os.remove(toFilename)
|
||||||
os.rename(newFilename, toFilename)
|
os.rename(newFilename, toFilename)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user