summaryrefslogtreecommitdiffstats
path: root/RISCOS/Modules/riscosmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'RISCOS/Modules/riscosmodule.c')
-rw-r--r--RISCOS/Modules/riscosmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/RISCOS/Modules/riscosmodule.c b/RISCOS/Modules/riscosmodule.c
index 55f189d..2ad4499 100644
--- a/RISCOS/Modules/riscosmodule.c
+++ b/RISCOS/Modules/riscosmodule.c
@@ -79,7 +79,7 @@ static PyObject *canon(char *path)
}
static PyObject *riscos_getcwd(PyObject *self,PyObject *args)
-{ if(!PyArg_NoArgs(args)) return NULL;
+{
return canon("@");
}
@@ -354,7 +354,7 @@ static PyMethodDef riscos_methods[] = {
{"system", riscos_system},
{"rmdir", riscos_remove},
{"chdir", riscos_chdir},
- {"getcwd", riscos_getcwd},
+ {"getcwd", riscos_getcwd, METH_NOARGS},
{"expand", riscos_expand},
{"mkdir", riscos_mkdir,1},
{"listdir", riscos_listdir},