mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-03-12 04:35:40 -07:00
Updated Frequently Asked Questions (markdown)
parent
8e1d978434
commit
5b19d5c36f
@ -461,13 +461,17 @@ Tautulli NotificationHandler :: Unable to parse parameter u'foobar' in notificat
|
||||
```
|
||||
|
||||
#### <a id="notifications-override-python">Q:</a> How do I override the Python version in a script?
|
||||
**A:** There are two aspects you might want to change here: The `PYTHONPATH` environment variable and the Python executable used.
|
||||
**A:** There are two aspects you might want to change:
|
||||
1. The `PYTHONPATH` environment variable
|
||||
* Tautulli will enhance the `PYTHONPATH` variable with the path of its own bundled libraries, allowing scripts to use any of the bundled libraries without the user needing to have installed them system wide. However, this means that the bundled versions take priority. If you want to disable this feature simply prepend `nopythonpath` to the script arguments.
|
||||
|
||||
1. The `python` interpreter used.
|
||||
* Normally scripts ending in `.py` are executed with `python`. If you want to change this you can prepend the interpreter in front of the script arguments. Currently allowed overrides: `python2`, `python3`, `python`, `pythonw`, `php`, `ruby`, `perl`.
|
||||
|
||||
* Tautulli will enhance the `PYTHONPATH` variable with the path of its own bundled libraries, allowing scripts to use any of the bundled libraries without the user needing to have installed them system wide. However, this means that the bundled versions take priority. If you want to disable this feature simply prepend `nopythonpath` to the script arguments.
|
||||
Examples:
|
||||
* If you wanted to run a Python 3 script, _without_ the `PYTHONPATH` changes from Tautulli you would set the arguments to `nopythonpath python3 the other arguments`.
|
||||
|
||||
* Normally scripts ending in `.py` are executed with `python`. If you want to change this you can prepend the interpreter in front of the script arguments. Currently allowed overrides: `python2`, `python3`, `python`, `pythonw`, `php`, `ruby`, `perl`.
|
||||
|
||||
Putting it together, if you wanted to run a Python 3 script, without the `PYTHONPATH` changes from Tautulli you would set the arguments to `nopythonpath python3 the other arguments`.
|
||||
* If you wanted to run a Python 2 script with python2 instead of python and _use_ the bundled libraries from Tautulli, you would set the arguments to `python2 the other arguments`.
|
||||
|
||||
---
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user