Created
May 10, 2015 21:22
-
-
Save frankrolf/56caaa0ef2ca74d99ccd to your computer and use it in GitHub Desktop.
Use external module in Drawbot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' 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