Method script.sourcePath(+ 1 overload)
Overload
Gets path of the caller source code file.
public static string sourcePath(string f_ = null)
Parameters
Returns
See Also
Overload(top)
Gets path of the main source code file of this program or of a library.
public static string sourcePath(bool inWorkspace, Assembly asm = null)
Parameters
inWorkspace (bool)
Get path in the workspace, like |
asm (Assembly)
An assembly compiled by LibreAutomate. If |
Returns
string
|
Remarks
When compiling, LibreAutomate adds PathInWorkspaceAttribute to the assembly. Then at run time this function gets its value. Returns null
if compiled by some other compiler.