Fill test disk partitions with random noise to expose more bugs.
[dcpomatic.git] / test / guessdcp.py
1 import os
2
3 def path(f):
4     for d in os.listdir(f):
5         try:
6             for s in os.listdir(os.path.join(f, d)):
7                 if s.endswith('.xml'):
8                     return os.path.join(f, d)
9         except:
10             pass
11
12     return None
13
14 if __name__ == '__main__':
15     print path('/home/carl/Unsafe/DCP/Boon')