BrownBiomechanics / Autoscoper

Autoscoper is a 2D-3D image registration software package.
https://autoscoper.readthedocs.io
Other
8 stars 5 forks source link

Add environment wrapper script #32

Closed jcfr closed 2 years ago

jcfr commented 2 years ago

Updating the environment on Linux and macOS is similar to Windows (expect the variables to set are LD_LIBRARY_PATH and DYLD_LIBRARY_PATH).

Considering the idea is to support the development workflow, we should avoid updating the registry as this could introduce some hard to track issues.

There are few approaches to address this:

  1. Generate .bat. and.sh` scripts acting as proxy that would be used like this:

    autoscoper_set_env.sh /path/to/autoscoper
    autoscoper_set_env.bat /path/to/autoscoper.exe
  2. Integrate commontk/AppLauncher like it is done in Slicer

  3. Integrate the forward launcher (see kwsys/SharedForward)

For now, I suggest to move forward with approach (1)

Steps

jcfr commented 2 years ago

For future reference, the setting of argCount in the windows bash script was adapted from https://superuser.com/questions/901932/how-do-i-detect-the-number-of-parameters-to-a-batch-file-and-loop-through-them