Get a module containing style declarations. Search order is: tools/pythonpoint/ tools/pythonpoint/styles/ ./
(modulename,fromPath='tools.pythonpoint.styles')
| 18 | |
| 19 | |
| 20 | def getModule(modulename,fromPath='tools.pythonpoint.styles'): |
| 21 | """Get a module containing style declarations. |
| 22 | |
| 23 | Search order is: |
| 24 | tools/pythonpoint/ |
| 25 | tools/pythonpoint/styles/ |
| 26 | ./ |
| 27 | """ |
| 28 | |
| 29 | try: |
| 30 | exec 'from tools.pythonpoint import '+modulename |
| 31 | return eval(modulename) |
| 32 | except ImportError: |
| 33 | try: |
| 34 | exec 'from tools.pythonpoint.styles import '+modulename |
| 35 | return eval(modulename) |
| 36 | except ImportError: |
| 37 | exec 'import '+modulename |
| 38 | return eval(modulename) |
| 39 | |
| 40 | |
| 41 | class PPMLParser(xmllib.XMLParser): |
no outgoing calls
no test coverage detected