Skip to content

Commit

Permalink
backup: backup to the same directory - should be on the same physical…
Browse files Browse the repository at this point in the history
… disk
  • Loading branch information
Mikko Korpela committed Feb 24, 2012
1 parent 4328a03 commit 0b6f936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/robotide/controller/chiefcontroller.py
Expand Up @@ -320,7 +320,7 @@ def __init__(self, file_controller):
def _get_backup_name(self, path):
if not os.path.isfile(path):
return None
self._backup_dir = tempfile.mkdtemp()
self._backup_dir = tempfile.mkdtemp(dir=os.path.dirname(path))
return os.path.join(self._backup_dir, os.path.basename(path))

def __enter__(self):
Expand Down

0 comments on commit 0b6f936

Please sign in to comment.