Skip to content

Commit

Permalink
Handle sub directories in output
Browse files Browse the repository at this point in the history
  • Loading branch information
dbr committed Feb 24, 2010
1 parent e872d5e commit 947cff0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/functional_runner.py
Expand Up @@ -125,7 +125,14 @@ def run_tvnamer(with_files, with_flags = None, with_input = "", with_config = No
stdout, stderr = proc.communicate()
stdout, stderr = [unicodify(x) for x in (stdout, stderr)]

files = os.listdir(unicode(episodes_location))
created_files = []
for walkroot, walkdirs, walkfiles in os.walk(episodes_location):
curlist = [os.path.join(walkroot, episodes_location) for name in walkfiles]

# Remove episodes_location from start of path
curlist = [os.path.relpath(x) for x in curlist]

created_files.extend(curlist)

# Clean up dummy files and config
clear_temp_dir(episodes_location)
Expand Down

0 comments on commit 947cff0

Please sign in to comment.