Syntax
Parameters
string
required
Path to the package root directory. Can be absolute or relative.
Returns
void - This method does not return a value.
Behavior
- The path is resolved to an absolute path automatically
- Used internally to locate binaries and resources
- Essential for bundled applications where
__dirnamemay not reflect the actual package location
Example
Use cases
Electron applications
Packaged applications
Related
- setModelsPath() - Configure models directory
- Installation - Setup and configuration