Path Aliases: Standard Paths

From The Foundry MODO SDK wiki
Jump to: navigation, search

modo uses a number of standard paths. These are used for finding configuration files, temporary directories, the user directory, and so on.

current

Represents the shorthand for the current directory. May be an empty string or a period, depending on the system.

cwd

Legacy. Current working directory as an absolute path, as defined by the operating system. This has no meaning on OS X.

program

The directory containing the application itself.

execname

The name of the application as it exists on disk.

project

Path to the project directory, if any project is currently being used. Otherwise, this is an empty string.

temp

Location where temporary files are written, such as auto-saves.

license

Where modo looks for its license file.

headless

The location of the headless version of modo.

headless32

The location of the installed 32 bit version of modo when running the 64 bit version of modo, or an empty string if the 32 bit version is not installed. On a 32 bit system, headless and headless32 both point to the same place. The 32 bit version of modo is sometimes launched from the 64 bit version of modo to access libraries that aren't available in 64 bit, such as the ability to render Quicktime movies on 64 bit Windows.

help

Location of the help files within modo's application bundle.

module

The path to the standard modo plug-ins. Note that third parties should not add their plug-ins here, but should instead use the kit system.

resource

The path to modo's standard resources. Third parties should not add their own files here, and should instead use the kit system.

prefs

Location of the modo users config and related preferences.

user

Location of the modo user directory on the system, often containing sub directories for configs and scripts.

content

Path to modo's standard content, if installed.

asset

Path to the assets within the modo standard content, if installed.

configs

Path to the user configs dir, usually found in the user/Configs.

scripts

Path to the user scripts dir, usually found in user/Scripts

documents

Path to the standard documents directory for the current user as defined by the OS.

configname

Full path, including the filename, of the modo user config file.


More Information