Skip to content

Commit

Permalink
update pthon paths for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ptresson committed Nov 7, 2024
1 parent 1037714 commit dfa3577
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ jobs:
run: |
# python -c 'import os;import sys;conda_env_path = os.path.dirname(sys.executable);print(conda_env_path);os.environ['PATH'] += f"{conda_env_path}\Library\bin";os.environ['PYTHONPATH'] += f"{conda_env_path}\Library\python\qgis"'
# python -c 'import os;import sys;conda_env_path = os.path.dirname(sys.executable);print(conda_env_path);os.environ['PATH'] += f"{conda_env_path}\Library\bin";os.environ['PYTHONPATH'] += f"{conda_env_path}\Library\python\qgis"'
python -c "import os;import sys;conda_env_path = os.path.dirname(sys.executable);print(conda_env_path);os.environ['PATH'] += f'{conda_env_path}\\Library\\bin';os.environ['PYTHONPATH'] += f'{conda_env_path}\\Library\\python\\qgis'"
# python -c "import os;import sys;conda_env_path = os.path.dirname(sys.executable);print(conda_env_path);os.environ['PATH'] += f';{conda_env_path}\\Library\\bin';os.environ['PYTHONPATH'] += f';{conda_env_path}\\Library\\python\\qgis'"
conda activate test
# Determine the path for the current conda environment's "Library\bin" directory
conda_env_path=$(dirname $(dirname $(which python)))
# Add the conda environment's "Library\bin" to the PATH and export it to $GITHUB_ENV
echo "PATH=$conda_env_path/Library/bin;$PATH" >> $GITHUB_ENV
- name: Tests
run: |
Expand Down

0 comments on commit dfa3577

Please sign in to comment.