diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-02-08 02:19:40 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-02-08 02:19:40 +0000 |
| commit | 10df3e6c29912ddd3e38de4e28b2974d6288af52 (patch) | |
| tree | fe7c0f682bd142c39c1a4bff9696be064c0151c4 /test/guessdcp.py | |
| parent | 07a95f6750979c8e353d1434d7fca6b780fc3a1f (diff) | |
Add a couple of test scripts.
Diffstat (limited to 'test/guessdcp.py')
| -rw-r--r-- | test/guessdcp.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/guessdcp.py b/test/guessdcp.py new file mode 100644 index 000000000..d4c41afb1 --- /dev/null +++ b/test/guessdcp.py @@ -0,0 +1,15 @@ +import os + +def path(f): + for d in os.listdir(f): + try: + for s in os.listdir(os.path.join(f, d)): + if s.endswith('.xml'): + return os.path.join(f, d) + except: + pass + + return None + +if __name__ == '__main__': + print path('/home/carl/Unsafe/DCP/Boon') |
