@Elwood
http://docs.python.org/2.6/library/os ... ighlight=getcwd#os.getcwdalso you can do
8.AmigaOS4:> python
Python 2.5.6 (r256:88840, Jul 1 2013, 23:31:00)
[GCC 4.2.4 (adtools build 20090118)] on ppc-amiga
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> help(os)
Help on module os:
NAME
os - OS routines for Mac, NT, or Posix depending on what system we're on.
FILE
python:lib/os.py
DESCRIPTION
This exports:
- all functions from posix, nt, os2, mac, or ce, e.g. unlink, stat, etc.
- os.path is one of the modules posixpath, ntpath, or macpath
- os.name is 'posix', 'nt', 'os2', 'mac', 'ce' or 'riscos'
- os.curdir is a string representing the current directory ('.' or ':')
- os.pardir is a string representing the parent directory ('..' or '::')
Help on module os:
NAME
os - OS routines for Mac, NT, or Posix depending on what system we're on....
...
...
Scrolling dowen through the quite large help file will get you what you want.
I might be then worth checking the function at the command line prompt, to make sure it works in AmigaOS (this does ofcourse).