Since os.popen
is being replaced by subprocess.popen
, I was wondering how would I convert
os.popen('swfdump /tmp/filename.swf/ -d')
to subprocess.popen()
I tried:
subprocess.Popen("swfdump /tmp/filename.swf -d")
subprocess.Popen("swfdump %s -d" % (filename)) # NOTE: filename is a variable
# containing /tmp/filename.swf
But I guess I'm not properly writing this out. Any help would be appreciated. Thanks