VEGASPYTHON 0.3 (Python scripting support for VEGAS) is available:
New in Version 0.3:
- Pythonscripts can now be started from the commandline
- Enhance compatibility with standard Python modules
Pythonscripts can now be started from the commandline together with VEGAS and commandline parameters can be passed to the script.
C:\Program Files\VEGAS\VEGAS Pro 16.0\vegas160.exe /SCRIPTARGS pythonscriptfilename /SCRIPTARGS arg1 /SCRIPTARGS arg2
Pythonscripts can access the commandline arguments via the variable sys.argv, as it is expected from Python programs.
Details can be found here: https://www.hlinke.de/dokuwiki/doku.php?id=en:py_commandline
This feature allows now the integration of VEGAS in complete PYTHON workflows.
Compatibility with standard Python module
Python modules expect that the name of the module is available in the variable "__name__".
For the main script executed "__name__" has to be "__main__".
VEGASPython now sets __name__ to "__main__" as it is expected by standard Python Script.