Python Tricks

 

Imports

Add a folder to path. Usefule to call a module that is in a parent directory:

import sys
sys.path.append("../")