-
Notifications
You must be signed in to change notification settings - Fork 115
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
Script fails when executing by filetype associations on Windows #2
Comments
Not sure what is happening.. Could you try with the latest version (from this repository)? What interpreter is this with? I'm not too sure how Windows deals with running python files directly (since it doesn't use the shbang), I assume it's with the associated executable? Also does it work if you run tvnamer on a file (not directories), or with a relative path? Might be something to do with the If this is still an issue with tvnamer v2 I'll boot into Windows and have a look.. |
Version:
When you run any Windows file something called ShellExecute is called. This looks up in the registry for the associated executable to a particular filetype. Then Windows executes that binary with the filename as the argument. It has an impact however on the value of argv[0] to use C-style terminology. Using a file it fails. |
Closing old ticket. Installing via |
Executing tvnamer on Microsoft Windows without explicitly executing a python interpretor causes the option parser to fail unexpectedly. Standard out result:
This also happens for other options, such as --help or -h as a result. When explicitly executed in python tvnamer is successful.
The text was updated successfully, but these errors were encountered: