diff --git a/rpg_cpp/.gitignore b/rpg_cpp/.gitignore old mode 100644 new mode 100755 diff --git a/rpg_cpp/compile.sh b/rpg_cpp/compile.sh index 98bb02ca..53789028 100755 --- a/rpg_cpp/compile.sh +++ b/rpg_cpp/compile.sh @@ -8,7 +8,7 @@ if [ $# -eq 0 ]; then echo "Compile third party librares" # get current path and append rpg_cpp -rpg_path=`pwd`/rpg_cpp +rpg_path=`pwd` # Entering folder with compressed third party (fftw and nifti) libraries cd $rpg_path/thirdparty/ diff --git a/setup.py b/setup.py index 91776fbe..8feb519a 100644 --- a/setup.py +++ b/setup.py @@ -19,8 +19,9 @@ def change_permissions_recursive(path, mode): for file in [os.path.join(root, f) for f in files]: os.chmod(file, mode) + change_permissions_recursive('rpg_cpp', 0o777) -subprocess.run(['./rpg_cpp/compile.sh'], shell=True) +subprocess.run(['./compile.sh'], shell=True, cwd='rpg_cpp') setup( name ='designer2',