mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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)
|
||||
if os.name == 'nt':
|
||||
# Windows, grrr...
|
||||
if os.path.exists(toFilename):
|
||||
os.remove(toFilename)
|
||||
os.rename(newFilename, toFilename)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user