Open ZLLentz opened 1 month ago
All scripts in engineering_tools that need to run another script in engineering_tools should run the script in the same release directory, so that we can isolate version-specific behavior and test/deploy more easily.
Some scripts reference the specific release directory directly: https://github.com/pcdshub/engineering_tools/blob/953c167e0701756b8ff41da1362e1a2b2cb525e4/scripts/set_gem_timing#L31
Use any of the various bash-isms for getting the current directory of a shell script.
https://github.com/pcdshub/engineering_tools/pull/204#discussion_r1783235437
Expected Behavior
All scripts in engineering_tools that need to run another script in engineering_tools should run the script in the same release directory, so that we can isolate version-specific behavior and test/deploy more easily.
Current Behavior
Some scripts reference the specific release directory directly: https://github.com/pcdshub/engineering_tools/blob/953c167e0701756b8ff41da1362e1a2b2cb525e4/scripts/set_gem_timing#L31
Possible Solution
Use any of the various bash-isms for getting the current directory of a shell script.
Context
https://github.com/pcdshub/engineering_tools/pull/204#discussion_r1783235437