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,7 +151,8 @@ class PeriodicFileDownloader(object):
|
||||
toFilename = os.path.join(conf.dataDir, filename)
|
||||
if os.name == 'nt':
|
||||
# Windows, grrr...
|
||||
os.remove(toFilename)
|
||||
if os.path.exists(toFilename):
|
||||
os.remove(toFilename)
|
||||
os.rename(newFilename, toFilename)
|
||||
else:
|
||||
start = time.time()
|
||||
|
Loading…
Reference in New Issue
Block a user