diff --git a/pyroSAR/examine.py b/pyroSAR/examine.py index 18294a58..fa92a8c5 100644 --- a/pyroSAR/examine.py +++ b/pyroSAR/examine.py @@ -611,11 +611,11 @@ def keys(self): @property def userpath(self): - out = self['snap.userdir'] - if out is None: + key = 'snap.userdir' + if key not in self.keys() or self[key] is None: return os.path.join(os.path.expanduser('~'), '.snap') else: - return out + return self[key] @userpath.setter def userpath(self, value):