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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Thomas Nücker

    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.p y", line 32 in ?
    ListSelection(d atal)

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

    File "C:\Prog1\lib\l ib-tk\Tkinter.py", line 1491, in __init__
    baseName = os.path.basenam e(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
Working...