Currently the post processing script file option does not allow for selecting the python runtime for the post processing.
I can change the default python binding from Python 2 to 3 on the OS, but if there are two scripts and one is in Python 3 and the other in 2 then it won't work. Also this can cause issues for other applications.
Is there anyway to change this in a configuration file?
Ability to select python runtime for the script file
Forum rules
Help us help you:
Help us help you:
- Tell us what system you run SABnzbd on.
- Adhere to the forum rules.
- Do you experience problems during downloading?
Check your connection in Status and Interface settings window.
Use Test Server in Config > Servers.
We will probably ask you to do a test using only basic settings. - Do you experience problems during repair or unpacking?
Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Re: Ability to select python runtime for the script file
Can't you steer it via the shebang in the first line of the python script?
Re: Ability to select python runtime for the script file
Misunderstood it at first, I have added to make it work #!/usr/bin/python3
Last edited by elurin on August 5th, 2020, 8:45 am, edited 1 time in total.
Re: Ability to select python runtime for the script file
Indeed what Sanderjo says. We don't select interpreters, we just run the file by simply calling it's path.
It's the shebang that selects the interpreter.
Only on Windows we prepend "python" in front of it, since it doesn't support shebangs.
It's the shebang that selects the interpreter.
Only on Windows we prepend "python" in front of it, since it doesn't support shebangs.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate