Issue fixed path to package importer in pip-installer CI script
@@ -103,9 +103,9 @@ pip-installer:
- echo $(python tests/get_gpu_index.py)
- export CUDA_VISIBLE_DEVICES=$(python tests/get_gpu_index.py)
# create a Python file that will import all available packages from the pip installer
- - package_importer="import_niftynet_packages.py"
+ - package_importer="$(pwd)/import_niftynet_packages.py"
# traverse the file hierarchy recursively to discover all packages
- - find niftynet -type f \( ! -name . \) -print | grep '.py$' | grep -v __init__ | sed 's/\.\.\///g;s/\//\./g;s/\.py//g;s/niftynet/import niftynet/g' > $venv/$package_importer
+ - find niftynet -type f \( ! -name . \) -print | grep '.py$' | grep -v __init__ | sed 's/\.\.\///g;s/\//\./g;s/\.py//g;s/niftynet/import niftynet/g' > $package_importer
# save NiftyNet folder path just in case
- niftynet_dir=$(pwd)
# create a virtual env to test pip installer
