Os.system (old python) and parameter arguments
I am trying to write a simple code that executes the os command with parameters
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
target = "i586"
build = os.system('/usr/bin/hsh --target="target"')
But it always starts as / usr / bin / hsh --target = target instead of target = i586. Also subprocess.call doesn't work, calls too old python.
Please help me.
0
source to share