summaryrefslogtreecommitdiff
path: root/support/openscad
diff options
context:
space:
mode:
authorMichael Schwarz <michi.schwarz@gmail.com>2015-09-11 21:39:45 +0200
committerMichael Schwarz <michi.schwarz@gmail.com>2015-09-16 01:40:00 +0200
commit987fa08ce66809cfd2389042b27508a66bfa99a0 (patch)
tree810dcdbe3379026733a8d6f6f2c0245565ed69d3 /support/openscad
parent63632560b6f80f91818c6bd6449cd7f8d6c4135b (diff)
downloadpogojig-987fa08ce66809cfd2389042b27508a66bfa99a0.tar.gz
pogojig-987fa08ce66809cfd2389042b27508a66bfa99a0.tar.bz2
pogojig-987fa08ce66809cfd2389042b27508a66bfa99a0.zip
New workaround for temp dir on different device.
Currently, on setups where the project dir is on a different file system as the system temporary directory, a temporary directory is instead created on the project dir. This is not very nice. With this change, we still create temporary files in the system temporary directory but copy instead of move files from and to the temporary directory, if necessary, which solves the problems.
Diffstat (limited to 'support/openscad')
-rw-r--r--support/openscad/__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/openscad/__main__.py b/support/openscad/__main__.py
index 2042a65..28de2cf 100644
--- a/support/openscad/__main__.py
+++ b/support/openscad/__main__.py
@@ -42,7 +42,7 @@ def main(in_path, out_path, deps_path):
# Write output files.
_write_dependencies(deps_path, relpath(out_path), deps - ignored_files)
- os.rename(temp_out_path, out_path)
+ util.rename_atomic(temp_out_path, out_path)
try: