diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-02-23 19:31:03 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-02-23 19:31:03 +0000 |
commit | 06409864a1d364df2c11cd306c5fc180fb5ebf9a (patch) | |
tree | 1e91dba53ddeb8a99e0bb03faafb439d2e7aa551 /obnamlib/plugins/fuse_plugin.py | |
parent | 52a9116177181608c936da7c71aa5a9ac9a63b04 (diff) | |
download | obnam-06409864a1d364df2c11cd306c5fc180fb5ebf9a.tar.gz |
Remove .cwd attribute and chdir
There seems to be no need to chdir back to the original cwd. Nothing
in the plugin causes chdir to happen.
Diffstat (limited to 'obnamlib/plugins/fuse_plugin.py')
-rw-r--r-- | obnamlib/plugins/fuse_plugin.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/obnamlib/plugins/fuse_plugin.py b/obnamlib/plugins/fuse_plugin.py index 7a965cb7..8060fe80 100644 --- a/obnamlib/plugins/fuse_plugin.py +++ b/obnamlib/plugins/fuse_plugin.py @@ -517,7 +517,6 @@ class MountPlugin(obnamlib.ObnamPlugin): self.app.settings.require('repository') self.app.settings.require('client-name') self.app.settings.require('to') - self.cwd = os.getcwd() self.repo = self.app.open_repository() self.repo.open_client(self.app.settings['client-name']) @@ -540,10 +539,6 @@ class MountPlugin(obnamlib.ObnamPlugin): self.repo.fs.close() def reopen(self): - try: - os.chdir(self.cwd) - except OSError: - pass self.repo.fs.close() self.repo = self.app.open_repository() self.repo.open_client(self.app.settings['client-name']) |