Skip to content

Instantly share code, notes, and snippets.

@frankrolf
Created May 10, 2015 21:22
Show Gist options
  • Save frankrolf/56caaa0ef2ca74d99ccd to your computer and use it in GitHub Desktop.
Save frankrolf/56caaa0ef2ca74d99ccd to your computer and use it in GitHub Desktop.
Use external module in Drawbot
''' Use external module in Drawbot '''
import sys
import os
# the path to my module:
modDir = os.path.expanduser('~/Desktop')
# add the path to sys.path
if not modDir in sys.path:
sys.path.append(modDir)
# import and use the module
import testModule
testModule.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment