Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

import modules given the full path python

# quick and easy way if you have a bunch of files in a directory

import sys
# the mock-0.3.1 dir contains testcase.py, testutils.py & mock.py
sys.path.append('/foo/bar/mock-0.3.1')

from testcase import TestCase
from testutils import RunTests
from mock import Mock, sentinel, patch
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #import #modules #full #path #python
ADD COMMENT
Topic
Name
6+7 =