mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue