Skip to content

Commit

Permalink
[examine.SnapProperties.userpath] return default if not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
johntruckenbrodt committed May 15, 2024
1 parent dead764 commit 74139fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyroSAR/examine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 74139fc

Please sign in to comment.