Thoisli 0 Report post Posted February 18, 2011 Pessoal tenho um program .py e preciso abrir outro programa passando um usuario como paramento estou usando import subprocess subprocess.call(['~/pont.pyc', str(entidade)]) como faço para ler esse paramento no pont.py (no caso ainda em contrução) Share this post Link to post Share on other sites
Beraldo 864 Report post Posted February 19, 2011 sys.argv veja: http://www.faqs.org/docs/diveintopython/kgp_commandline.html Share this post Link to post Share on other sites
Thoisli 0 Report post Posted February 21, 2011 Deu certinho obrigado Beraldo Share this post Link to post Share on other sites