JeffersonLab / hps-mc

HPS MC toolkit
1 stars 6 forks source link

Check for sane environment in python init #394

Closed JeremyMcCormick closed 10 months ago

JeremyMcCormick commented 1 year ago

The hpsmc python init should check that HPSMC_DIR is defined, indicating that the env script was sourced. If not, then an exception should be raised. (We could find the directory based on the location of the script the user is calling but I think it is more flexible and explicit to make sure the environment is already properly setup beforehand.)