Skip to content

Commit

Permalink
omero_ext.path: allow pwd module to be be missing
Browse files Browse the repository at this point in the history
The try/except block was removed in f054810
which led to regression on Windows systems where pwd is not installed.
  • Loading branch information
sbesson committed Mar 22, 2024
1 parent 135a712 commit 8f16016
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/omero_ext/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@
except ImportError:
pass

import pwd
try:
import pwd
except ImportError:
pass

from functools import reduce

getcwdu = os.getcwd
Expand Down

0 comments on commit 8f16016

Please sign in to comment.