summaryrefslogtreecommitdiff
path: root/seivot
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-07-22 15:07:18 +0100
committerLars Wirzenius <liw@liw.fi>2011-07-22 15:07:18 +0100
commite55b0eec1063e4e68fb9865166fb29f01e18bd66 (patch)
tree69a9801bf8ec69ef0a7b876a239b6035683382d8 /seivot
parent2c6f0d7036b5bac9148b5424beab27a9a9105b81 (diff)
downloadseivot-e55b0eec1063e4e68fb9865166fb29f01e18bd66.tar.gz
Handle missing PYTHONPATH in environment.
Diffstat (limited to 'seivot')
-rwxr-xr-xseivot2
1 files changed, 1 insertions, 1 deletions
diff --git a/seivot b/seivot
index e518497..62b128d 100755
--- a/seivot
+++ b/seivot
@@ -164,7 +164,7 @@ class Obnam(BackupProgram):
}
env['OBNAM_PROFILE'] = self.settings['obnam-profile'] % namepattern
if self._larch_branch:
- old = env['PYTHONPATH']
+ old = env.get('PYTHONPATH')
if old:
new = '%s:%s' % (self._larch_branch, old)
else: