Python.Path
-----------

Queries the default module search path.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Python](component_Python.md) | [14.3](newinversion143.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Python.Path" ) ### Parameters

none

### Result

Returns text or error.

### Description

Queries the default module search path.  
This is computed from the program name (set by assigning ProgramName) and some environment variables. The returned string consists of a series of directory names separated by a platform dependent delimiter character. The delimiter character is ':' on Unix and macOS, ';' on Windows.   
The list sys.path is initialized with this value on interpreter startup; it can be (and usually is) modified later to change the search path for loading modules.  
### Examples

Query path on macOS:

 MBS ( "Python.Path" )  
<small>  
Example result: /opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python312.zip:/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12:/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload</small>### Blog Entries

- [MBS FileMaker Plugin, version 14.3pr3](https://www.mbsplugins.de/archive/2024-06-14/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 12nd June 2024 , last changed 12nd June 2024

  
[Python.New](PythonNew.md) - [Python.PrintOutput](PythonPrintOutput.md)

[HTML Version](PythonPath.shtml)