Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

en:py_name [2018/10/27 13:19]
hlinke angelegt
en:py_name [2018/10/27 13:21]
hlinke
Zeile 3: Zeile 3:
 ====== Python Compatibility ====== ====== Python Compatibility ======
  
-Standard Python scripts expect that the name of the script is available in the variable "__name__".+Standard Python scripts expect that the name of the script is available in the variable  
 +<code Python> 
 +"__name__". 
 +</code>
  
-For the main script executed "__name__" has to be "__main__".+For the main script executed  
 +<code Python>"__name__"</code> 
 +has to be 
 +<code Python> "__main__"</code>
  
-VEGASPython now sets for the script executed the variable "__name__" to "__main__" as it is expected by standard Python Scripts.+VEGASPython now sets for the script executed the variable  
 +<code Python>"__name__"</code> 
 +to  
 +<code Python> "__main__"</code> 
 + 
 +as it is expected by standard Python Scripts.
  

Andere Sprachen
QR-Code
QR-Code en:py_name (erstellt für aktuelle Seite)