[Crossfire-wiki] [Crossfire DokuWiki] page changed: user:katia:about_python

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Sun Sep 30 09:53:33 CDT 2012


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2012/09/30 09:53
User        : katia
Edit Summary: 

@@ -13,8 +13,9 @@
    >>> 
  
  Then use Ctrl+d to exit the python console.
  So, the second line of that output shows you the version. If it says 3 or over you may have to try the command 'python2' instead, or may need to install it too. 
+ 
  ===== Sheebang =====
  The sheebang is the first line of the script.
  
  It tells the operating system what interpreter to use to run the code. 
@@ -24,4 +25,5 @@
  More or less sheebangs have the form #!/bin/bash/<interpreter> then the file /bin/bash/<interpreter> should exist in your system and it will define the version that will run.
  
  So change your sheebang according to how you have installed python in your system and the version needed for each script. Running /bin/bash/<interpreter> in your console should tell you the version it would use (see [[#Version]])
  
+ If a 'script' has no sheebang, it may be a library used by other scripts. In that case the script won't run anything by itself and can only be imported by others to use it's functions.


IP-Address  : 186.52.69.211
Old Revision: http://wiki.metalforge.net/doku.php/user:katia:about_python?rev=1349015796
New Revision: http://wiki.metalforge.net/doku.php/user:katia:about_python

-- 
This mail was generated by DokuWiki at
http://wiki.metalforge.net/



More information about the crossfire-wiki mailing list