Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   sys.argv[0] - 'module' object has no attribute 'argv' (http://www.velocityreviews.com/forums/t319024-sys-argv-0-module-object-has-no-attribute-argv.html)

=?ISO-8859-1?Q?Thomas_N=FCcker?= 06-30-2003 02:07 PM

sys.argv[0] - 'module' object has no attribute 'argv'
 
Hi!

I have the following problem within a program, that is using the
python dll. With this program i want to use Tkinter, but after setting
all paths i get the following error:

Traceback (most recent call last):
File "c:/mtt/bg_private_area/truefalsetest.py", line 32 in ?
ListSelection(datal)

File "C:\Prog1\MttDialogs.py", line 324 in ListSelection
root = Tk()

File "C:\Prog1\lib\lib-tk\Tkinter.py", line 1491, in __init__
baseName = os.path.basename(sys.argv[0])

AttributeError: 'module' object has no attribute 'argv'
Redirected about to stop, stderr

sys and os are internal modules i didn't touch - so i think it must be
a problem of the configuration of Python or the corresponding
compilation.
It would be great if somebody could help me with this problem!

Thomas


All times are GMT. The time now is 09:03 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.