Skip to content

Commit

Permalink
mm: the search for the user configuration directory is now more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
aivazis committed Jul 4, 2023
1 parent 775390c commit b25f354
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mm.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,10 +735,10 @@ def locateUserConfig(self):
cfgdir = self.cfgdir
# in the user's home directory
home = self.user.home
# the target
# form the target
target = home / cfgdir
# if it exists
if target.exists:
# if it exists and it is a directory
if target.exists and target.isDirectory():
# hand it off
return target
# if we couldn't find it
Expand Down

0 comments on commit b25f354

Please sign in to comment.