Skip to content

Instantly share code, notes, and snippets.

@gargolito
Last active March 9, 2019 16:09
Show Gist options
  • Save gargolito/2273538a6eec38fe38600b103c9856ff to your computer and use it in GitHub Desktop.
Save gargolito/2273538a6eec38fe38600b103c9856ff to your computer and use it in GitHub Desktop.
include alternate python module locations for import #python
# must be added before the module to be imported from the specified path
import sys
sys.path.append("/custom/path/to/modules")
import custom_module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment