Skip to main content
Sets the root directory path for the OpenComic AI package. This is primarily used in bundled or packaged applications where the package location differs from the default.

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 __dirname may not reflect the actual package location

Example

Use cases

Electron applications

Packaged applications

Source

Defined in index.mts:769-773