[Kde-games-devel] moved Kajongg from playground to kdereview

Pedro Lopez-Cabanillas pedro.lopez.cabanillas at gmail.com
Mon Feb 22 13:50:07 GMT 2010


On Monday, February 22, 2010, Wolfgang Rohdewald wrote:
> On Monday 22 February 2010, Pedro Lopez-Cabanillas wrote:
> > > > os.path.splitext(os.path.basename(sys.argv[0]))[0]
> > > > IndexError: list index out of range
> > >
> > > I do not see why. Could you please apply the attached patch
> > > and mail me the output?
> >
> > Sure. here it is
> >
> > $ kajongg
> > args: []
>
> that should not happen.
> Just like in C and C++, sys.argv should have length >= 1
>
> I can only imagine that KCmdLineArgs messes with sys.argv
> (see kajongg.py), but that does not happen here. Kubuntu
> with 4.4 backports.

This is openSUSE 11.1, with kdelibs = 4.3.5 from KDE4:STABLE:Desktop
and Python 2.6

> so could you please try one more patch?
>
> anyway I will probably commit a workaround - using
> a default value.

$ kajongg
Traceback (most recent call last):
  File "/usr/bin/kajongg", line 46, in <module>
    assert sys.argv,  'after KCmdLineArgs.init'
AssertionError: after KCmdLineArgs.init

Regards,
Pedro




More information about the kde-core-devel mailing list