Class PythonSettings
Settings for the Python Scripting package.
Inherited Members
Namespace: UnityEditor .Scripting.Python
Assembly: Unity.Scripting.Python.Editor.dll
Syntax
public sealed class PythonSettings : ScriptableObject
Fields
kDefaultPython
Declaration
public const string kDefaultPython = "Library/PythonInstall/python.exe"
Field Value
Type | Description |
---|---|
string |
kDefaultPythonDirectory
Location where Python will be installed, relative to the project path.
Declaration
public const string kDefaultPythonDirectory = "Library/PythonInstall"
Field Value
Type | Description |
---|---|
string |
Properties
PythonNetVersion
Version number of our custom python.NET forked library installed with Python Scripting.
Declaration
public static string PythonNetVersion { get; }
Property Value
Type | Description |
---|---|
string |
Version
Returns the release version.
Must be made to match the package.json or else things get confusing.
Declaration
public static string Version { get; }
Property Value
Type | Description |
---|---|
string |
kDefaultPythonFullPath
Full path to the Python executable.
Declaration
public static string kDefaultPythonFullPath { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetSitePackages()
Set of additional site-packages paths used in your project.
Example: add your studio scripts here.
This is a copy; avoid calling SitePackages in a loop.
Declaration
public static string[] GetSitePackages()
Returns
Type | Description |
---|---|
string[] | A string array of the site-packages |