• Martin Thoma
  • Home
  • Categories
  • Tags
  • Archives
  • Support me

Append Python PATH

Python has a PATH in which it looks for modules. You can display the current module PATH with

import sys

print(sys.path)

and apped something to it with

import sys

sys.path.append("/some/path/to/a/module")

However, the clean way would be to write a module and install that module.

Published

Jul 20, 2014
by Martin Thoma

Category

Code

Tags

  • PATH 1
  • Python 141

Contact

  • Martin Thoma - A blog about Code, the Web and Cyberculture
  • E-mail subscription
  • RSS-Feed
  • Privacy/Datenschutzerklärung
  • Impressum
  • Powered by Pelican. Theme: Elegant by Talha Mansoor