projects
/
dcpomatic.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Make the default disk writer window wider.
[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')