summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-05-05 23:10:58 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-05-05 23:10:58 (GMT)
commit1fdadcd42cd430d6e77c1df1ed1df777ca3ff4a2 (patch)
tree56db960f475c5549f1aa6086e4463de451ea0581
parent9d61d1bab17238b5ef62c01257b8a4d04edfa6d0 (diff)
downloadcpython-1fdadcd42cd430d6e77c1df1ed1df777ca3ff4a2.zip
cpython-1fdadcd42cd430d6e77c1df1ed1df777ca3ff4a2.tar.gz
cpython-1fdadcd42cd430d6e77c1df1ed1df777ca3ff4a2.tar.bz2
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.
-rw-r--r--Mac/Lib/macfsn.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Mac/Lib/macfsn.py b/Mac/Lib/macfsn.py
index f7b6b2e..3c12646 100644
--- a/Mac/Lib/macfsn.py
+++ b/Mac/Lib/macfsn.py
@@ -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