Auto-install on import, if NavServices is available. Unless a "no navservices" flag is set Python automagically imports this module so code that uses macfs.xxxGetFile will get NavServices dialogs.

This commit is contained in:
Jack Jansen 2000-05-05 23:10:58 +00:00
parent 9d61d1bab1
commit 1fdadcd42c
1 changed files with 1 additions and 0 deletions

View File

@ -129,6 +129,7 @@ if Nav and Nav.NavServicesAvailable():
StandardPutFile = _StandardPutFile
SetFolder = _SetFolder
GetDirectory = _GetDirectory
_install()
else:
from macfs import StandardGetFile, PromptGetFile, StandardPutFile, SetFolder, GetDirectory