Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1fdadcd

Browse files
committed
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.
1 parent 9d61d1b commit 1fdadcd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Mac/Lib/macfsn.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def _install():
129129
StandardPutFile = _StandardPutFile
130130
SetFolder = _SetFolder
131131
GetDirectory = _GetDirectory
132+
_install()
132133
else:
133134
from macfs import StandardGetFile, PromptGetFile, StandardPutFile, SetFolder, GetDirectory
134135

0 commit comments

Comments
 (0)