Skip to content

Instantly share code, notes, and snippets.

@nickgravish
Last active February 15, 2016 20:56
Show Gist options
  • Save nickgravish/4fd99387d918cd9f796a to your computer and use it in GitHub Desktop.
Save nickgravish/4fd99387d918cd9f796a to your computer and use it in GitHub Desktop.
Adding custom python modules to my config

To add a custom python module so that I can access it everywhere

  1. Make the python module, use a simple directory structure
  ~/Python/modulename/
    -> readme.md
    -> modulename/
      -> __init__.py
      -> module1.py
      .
      .
      .
      -> moduleN.py
      
  1. Register this module in pythonpath for shell In ~/.zshrc find line export PYTHONPATH =" ... " and add path to this line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment