From 80bf45078a41452d603104e95a0ebb53e9161c44 Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Sun, 20 Sep 2015 21:27:51 -0700 Subject: [PATCH] Moved comment on running rtv as a module to the FAQ section. --- README.rst | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/README.rst b/README.rst index 17dd810..4303ee5 100644 --- a/README.rst +++ b/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 =========