Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung Nächste Überarbeitung Beide Seiten der Revision | ||
en:vegas_python_faq [2018/10/28 09:05] hlinke |
en:vegas_python_faq [2018/10/28 09:13] hlinke |
||
---|---|---|---|
Zeile 104: | Zeile 104: | ||
<code Python> | <code Python> | ||
+ | clr.AddReference(" | ||
+ | import System.IO | ||
+ | from System.IO import * | ||
import sys | import sys | ||
scriptDirectory = Path.GetDirectoryName(sys.argv[0]) | scriptDirectory = Path.GetDirectoryName(sys.argv[0]) | ||
Zeile 131: | Zeile 134: | ||
</ | </ | ||
- | If the filename or a parameter include blanks, then the parameter must be enclosed in ´" | + | If the filename or a parameter include blanks, then the parameter must be enclosed in ´"" |
The pythonscript can access the commandline arguments as it is standard in Python via the variable sys.argv. | The pythonscript can access the commandline arguments as it is standard in Python via the variable sys.argv. | ||
This variable contains a list of strings with each argument as a separate string item in the list. | This variable contains a list of strings with each argument as a separate string item in the list. |