diff options
author | Frederic Back <fredericback@gmail.com> | 2006-09-23 23:55:44 +0000 |
---|---|---|
committer | Frederic Back <fredericback@gmail.com> | 2006-09-23 23:55:44 +0000 |
commit | 0e811da0ac511c492c645b65c83015191c200aec (patch) | |
tree | 2ecebc2dfdf45d38701185aa36454b54c4942db0 /src/extension/extensiontest.py | |
parent | 722dacb7745d60f17a2010632eec74b5fe68ba90 (diff) |
* Added experimental build_tree in c++
git-svn-id: file:///home/lennart/svn/public/fring/trunk@16 d0d2c35f-0a1e-0410-abeb-dabff30a67ee
Diffstat (limited to 'src/extension/extensiontest.py')
-rw-r--r-- | src/extension/extensiontest.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/extension/extensiontest.py b/src/extension/extensiontest.py new file mode 100644 index 0000000..e95c7a3 --- /dev/null +++ b/src/extension/extensiontest.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python + +import sys, os + +try: import fringtools +except: + print "Install along with the normal setup.py script before testing" + sys.exit() + +if len(sys.argv) >= 2: tree_path = sys.argv[1] +else: tree_path = os.path.expanduser("~") + +def read( t, tab=0 ): + fn, data, size = t + print " "*tab,fn,size + if not data: return + for e in data: + read(e,tab+1) + +print 'getting "%s":'%tree_path +i = fringtools.build_tree(tree_path, True) +print "done." +read(i) |