[PYTHONMAC-SIG] chdir() and Standard File

Jack Jansen Jack.Jansen@cwi.nl
Sun, 14 Jul 1996 23:55:49 +0200


A design question: speak up now or forever hold your silence:-)

Currently, the Standard File working directory and the "other" working
directory (i.e. what you set with os.chdir() and what relative paths
are relative to) are completely separated. This has the advantage that
python programs have a "MacOS feel", i.e. the initial
macfs.StandardGetFile dialog will come up in the place people expect
from other mac programs. On the other hand it feels strange to Python:
you chdir() somewhere and ask the user for a file, but it comes up in
a different folder from where you just chdir'd to.

Possibilities:
- keep it as it is (chdir and Standard File completely uncoupled)
- make them tightly coupled (chdir immedeately changes Standard File
  folder)
- make them optionally coupled (setting "macfs.followchdir" to one
  makes Standard File follow chdir)
- create macfs.chdir() which would set Standard File working
  directory.

I'd personally be in favor of the last solution, but let's hear other
people's opinions.
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@cwi.nl      | ++++ if you agree copy these lines to your sig ++++
http://www.cwi.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm 

=================
PYTHONMAC-SIG  - SIG on Python for the Apple Macintosh

send messages to: pythonmac-sig@python.org
administrivia to: pythonmac-sig-request@python.org
=================