I am set the environ using os module
import os
os.putenv('test','/usr/lib/jvm')
os.system('bash')
How to set using subprocess
import subprocess
NB: Please don't write a shell script and call using subprocess
I am set the environ using os module
import os
os.putenv('test','/usr/lib/jvm')
os.system('bash')
How to set using subprocess
import subprocess
NB: Please don't write a shell script and call using subprocess