![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: python commmand line params from c++
From: Denis S. Otkidach <ods@strana.ru>
Date: Thu Jun 30 2005 - 17:07:36 CEST
On 30 Jun 2005 07:52:04 -0700
> What is the proper way to pass command line parameters to a python
Have you tried PySys_SetArgv?
> path = "c:\\someDir\\someScript.py param1 param2 param3";
This code looks strange: you open file and create Python file object
> I'm getting a "format error someScript.py, line 1" when the code is
I believe it's due to PyFile_FromString failing to open non-existent
-- Denis S. Otkidach http://www.python.ru/ [ru]Received on Thu Sep 29 16:40:09 2005 |