Skip to content

Commit

Permalink
Merge pull request #402 from sbesson/win_regression
Browse files Browse the repository at this point in the history
Fix Windows regression in omero_ext.path
  • Loading branch information
sbesson authored Mar 25, 2024
2 parents 0dc60bd + 8f16016 commit 815874b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
include:
- python-version: '3.8'
os: macos-latest
- python-version: '3.9'
os: windows-2019
runs-on: ${{ matrix.os }}
steps:
- name: Get tox target
Expand All @@ -33,7 +35,7 @@ jobs:
echo "py=$py" >> $GITHUB_OUTPUT
shell: bash
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -51,7 +53,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Build package
Expand Down
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 815874b

Please sign in to comment.