dont add cmd to arglist
authorghost <andreas.monzner@multimedia-labs.de>
Fri, 31 Oct 2008 13:03:55 +0000 (14:03 +0100)
committerAndreas Oberritter <obi@saftware.de>
Thu, 6 Nov 2008 00:47:03 +0000 (01:47 +0100)
lib/base/console.cpp

index 25318cc..5ca77d1 100644 (file)
@@ -497,7 +497,7 @@ eConsolePy_execute(eConsolePy* self, PyObject *argt)
                        argv[argpos++] = PyString_AsString(arg);
                }
                argv[argpos] = 0;
-               return PyInt_FromLong(self->cont->execute(argv[0], argv));
+               return PyInt_FromLong(self->cont->execute(argv[0], argv+1));
        }
        else
        {