linux - Python subprocess and os.system both not working when sourcing a file -


So, I'm trying to execute the following command on the python:

  project = "7.0" cmd = ". EnvVerSettingFile% s; $ RELEASE to resonate"% project os.system (cmd)  

This is my dilemma. EnvVarSettingFile is a script which is a logic (this In the case of the project) and the environment variable sets "release" and exports it However, when I try to execute the above order, then Azhathan says this A complaint that was my argument was not passed. And it does not hide anything to touch $ RELEASE .

I tried to check it on the UNIX command line and it works perfectly. It sets the variable variable and prints the "Release" variable. However, for some reason, it does not work in dragon Note that I have tried to use subprocess.col (CMD, shell = tru) and it does nothing. Also, while executing this dragon script involving this code, it basically gets corrected on ossystem (cmd) and I have to kill the manual process.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -