Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1#!/usr/local/bin/python 

2# encoding: utf-8 

3""" 

4*Get the root path for this python package* 

5 

6:Author: 

7 David Young 

8""" 

9import os 

10 

11def getpackagepath(): 

12 """ 

13 *Get the root path for this python package* 

14 

15 *Used in unit testing code* 

16 """ 

17 moduleDirectory = os.path.dirname(__file__) 

18 packagePath = os.path.dirname(__file__) + "/../" 

19 

20 return packagePath