bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnubg] Bug: sys.argv not available in gnubg/python?


From: David Levy
Subject: [Bug-gnubg] Bug: sys.argv not available in gnubg/python?
Date: Thu, 18 May 2006 09:48:13 -0700

Øystein posted a similar query for me earlier, but here are more details:

The doesn't appear to be support for command line arguments to a python
script under gnubg. 

>From a cmd window under Windows XP, I type:

gnubg-cli.exe -p e:\gnubatch\RunGnubg.py  {and want to add args here}

So I looked for sys.argv as follows:

(1) run gnubg-cli
(2) type '>' to enter the python shell
(3) type 'import sys' to import the sys module
(4) type 'dir(sys)' to see what objects are there

I don't see the expected sys.argv.

Am I missing something?

Is there another way I can pass command line arguments to a python script
under gnubg?


Thanks,

David





reply via email to

[Prev in Thread] Current Thread [Next in Thread]