Difference between revisions of "Python"

From LPTMS Wiki
Jump to: navigation, search
m
Line 18: Line 18:
  
 
* [http://www.boost.org/doc/libs/release/libs/python/doc interfacing C++ and Python] via Boost
 
* [http://www.boost.org/doc/libs/release/libs/python/doc interfacing C++ and Python] via Boost
 +
 +
== Tips ==
 +
 +
* adding a path to a directory containing your module files
 +
<source lang="py">
 +
import sys
 +
sys.path += [ "/home/username/bin/Python" ]
 +
</source>

Revision as of 11:16, 13 October 2011

documentation

Libraries

Miscellaneous

Tips

  • adding a path to a directory containing your module files

import sys
sys.path += [ "/home/username/bin/Python" ]