I want to be able to run the following command:
sh -c "python -c "import sys;sys.platform""
however I am failing to do so with subprocess
I have tried the following but
subprocess.check_output(["sh", "-c", ["python", "-c", '"import sys; print sys.platform"']])
I get the following output:
sh: python-cimport: command not found
File "<string>", line 1
"import
^