projects
/
dcpomatic.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
d4c41afb13992b5efac1148ce1a14d9cd342730e
[dcpomatic.git]
/
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')