I need to use an conda environment to execute python files (because of lack of privileges and constraints set by the server admin). So currently I do the following to activate the environment:
subprocess.check_output('source activate rgi_run', shell=True)
And then run my script using an other suprocess call using shell = True.
However I have only read "negative" things about using shell = True
, especially the security reasons (e.g.: Actual meaning of 'shell=True' in subprocess). So I'm wondering if there are other options to do this, if not are there even security reasons when running this on a private in-house server?