summaryrefslogtreecommitdiff
path: root/obnamlib/plugins/fuse_plugin.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-02-23 19:31:03 +0000
committerLars Wirzenius <liw@liw.fi>2014-02-23 19:31:03 +0000
commit06409864a1d364df2c11cd306c5fc180fb5ebf9a (patch)
tree1e91dba53ddeb8a99e0bb03faafb439d2e7aa551 /obnamlib/plugins/fuse_plugin.py
parent52a9116177181608c936da7c71aa5a9ac9a63b04 (diff)
downloadobnam-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.py5
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'])