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:
parent
9d61d1bab1
commit
1fdadcd42c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue