more doc tweaks

This commit is contained in:
Sandy Walsh 2014-05-24 01:26:37 +00:00
parent 133cb14e4b
commit a840a8ec9d
1 changed files with 8 additions and 11 deletions

View File

@ -9,20 +9,17 @@ not in the Python Path.
Using Simport
=============
{{{
import simport
}}}
import simport
# For modules already in the Python Path
function = simport.load('mymodule.myfunction')
class_method = simport.load('mymodule:MyClass.mymethod')
# For modules already in the Python Path
function = simport.load('mymodule.myfunction')
class_method = simport.load('mymodule:MyClass.mymethod')
# For modules not in the Python Path
function = simport.load('/path/to/file.py|module_name:myfunction')
class_method = simport.load('/path/to/file.py|module_name:MyClasss.mymethod')
}}}
# For modules not in the Python Path
function = simport.load('/path/to/file.py|module_name:myfunction')
class_method = simport.load('/path/to/file.py|module_name:MyClasss.mymethod')
Running Tests
=============
From the simport root directory, run `nosetests`
From the simport root directory, run `tox`