Skip to content

Commit

Permalink
fixup b6e2d1 by only unlinking file if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Nov 4, 2010
1 parent ce74a64 commit 7a2b928
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cascadenik-compile.py
Expand Up @@ -44,7 +44,8 @@ def main(src_file, dest_file, **kwargs):
f.close()

# manually unlinking seems to be required on windows
os.unlink(dest_file)
if os.path.exists(dest_file):
os.unlink(dest_file)
os.rename(tmp_file, dest_file)
return 0

Expand Down

0 comments on commit 7a2b928

Please sign in to comment.