Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subtitles not added via manual.py when using a relative filepath #70

Closed
mstrelan opened this issue Dec 16, 2013 · 1 comment
Closed

Comments

@mstrelan
Copy link
Contributor

When I run manual.py I usually run it from the directory the show is in, that way when I am asked to enter the file path I can just enter the file name without the full path. However I've just found out that this is the reason my external subtitles are not added.

The problem code is here

for dirName, subdirList, fileList in os.walk(input_dir):

input_dir is empty in this scenario

Is there a way to get the full path of input_dir? In PHP there is a function "realpath" which takes an absolute OR relative path as the input and returns the full absolute path. If python has something similar you could run that on the input_dir variable.

@mdhiggins
Copy link
Owner

Fixed with the latest commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants