Table of Contents

Interface IScriptSource

Namespace
Alternet.Scripter.Python
Assembly
Alternet.Scripter.Python.v9.dll

Represents methods and properties to work with script text, files or projects.

public interface IScriptSource : IScriptSourceBase, ICloneable, IEquatable<IScriptSource>

Properties

Changed

When implemented by a class, gets or sets boolean value indicating if script source has been modified since last compilation.

Files

When implemented by a class, gets list of files containing script to execute.

FrameworkPath

When implemented by a class, gets location of .NET Framework assemblies.

Imports

When implemented by a class, gets list of namespaces to be used in the script.

ModulesSearchPaths

When implemented by a class, gets list of search directories to look for Python modules.

ProjectName

When implemented by a class, gets or sets name of the Visual Studio project containing script files to execute.

ReferencedFrameworks

Gets or sets a combination of referenced library frameworks.

References

When implemented by a class, gets list of external assemblies referenced from the script.

ReferencesSearchPaths

When implemented by a class, gets list of search directories to look for assembly references.

StartupFile

When implemented by a class, gets or sets startup Python script file to be executed on script run. When this property is set, the only file that is executed is the StartupFile. When this property is not set, all the script files are executed in order they are specified.

Methods

FromExpression(string)

When implemented by a class, loads script source from the expression.

FromScriptCode(string)

When implemented by a class, loads script source from the script code.

FromScriptCode(string, string)

When implemented by a class, loads script source from the script code.

FromScriptFile(string)

When implemented by a class, loads script source from the script file.

FromScriptProject(string)

When implemented by a class, loads script source from the Python project.

GetLastModifiedDate(string)

When implemented by a class, gets file date time when script source was compiled.

HasBeenModified(IScriptSource)

When implemented by a class, compares file modification dates against to other script source.

Reset()

When implemented by a class, clears script source.