Kaydet (Commit) 1fdadcd4 authored tarafından Jack Jansen's avatar Jack Jansen

Auto-install on import, if NavServices is available. Unless a "no navservices"…

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.
üst 9d61d1ba
...@@ -129,6 +129,7 @@ if Nav and Nav.NavServicesAvailable(): ...@@ -129,6 +129,7 @@ if Nav and Nav.NavServicesAvailable():
StandardPutFile = _StandardPutFile StandardPutFile = _StandardPutFile
SetFolder = _SetFolder SetFolder = _SetFolder
GetDirectory = _GetDirectory GetDirectory = _GetDirectory
_install()
else: else:
from macfs import StandardGetFile, PromptGetFile, StandardPutFile, SetFolder, GetDirectory from macfs import StandardGetFile, PromptGetFile, StandardPutFile, SetFolder, GetDirectory
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment