I am trying to run activate.sh file to set environment paths for vitrual environment from python but I am not able to run source files from python. Is there any way to do that
My source is here
if sys.argv[1]=='-a':
os.system('. activate.sh')
elif sys.argv[1]=='-d':
os.system('. deactivate.sh')
else:
print('You only have -a, -d as options')