source: TI03-DataExtractor/branches/old_stuff/dx/testImports.py @ 793

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI03-DataExtractor/branches/old_stuff/dx/testImports.py
Revision 793, 284 bytes checked in by astephen, 14 years ago (diff)

Put all the old code in the old_stuff branch.

  • Property svn:executable set to *
Line 
1#!/usr/bin/env python
2
3"""
4testImport.py
5=============
6
7Tests the import of all modules in this directory.
8"""
9
10def testall():
11    for file in open('mods.txt').readlines():
12        print "Testing: ", file
13        __import__(file.strip()[:-3])
14
15
16if __name__=="__main__":
17    testall()
Note: See TracBrowser for help on using the repository browser.