Moved comment on running rtv as a module to the FAQ section.
This commit is contained in:
22
README.rst
22
README.rst
@@ -46,13 +46,6 @@ The installation will place a script in the system path
|
||||
$ rtv
|
||||
$ rtv --help
|
||||
|
||||
If you're having issues running RTV with Python 2, run RTV as module :
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ cd /path/to/rtv
|
||||
$ python2 -m rtv
|
||||
|
||||
=====
|
||||
Usage
|
||||
=====
|
||||
@@ -201,6 +194,21 @@ Example **oauth.cfg**:
|
||||
[oauth]
|
||||
auto_login=false
|
||||
|
||||
|
||||
===
|
||||
FAQ
|
||||
===
|
||||
|
||||
How do I run the code directly using python?
|
||||
This project is structured to be run as a python *module*. This means that in order to resolve imports you need to launch using python's ``-m`` flag. This method works for all versions of python. Follow the example below, which assumes that you have cloned the repository into the directory **~/rtv_project**.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ cd ~/rtv_project
|
||||
$ python2 -m rtv
|
||||
$ python3 -m rtv
|
||||
|
||||
|
||||
=========
|
||||
Changelog
|
||||
=========
|
||||
|
||||
Reference in New Issue
Block a user