From d31f58b37ab7d5d211cbcfcc35e2af332b593a66 Mon Sep 17 00:00:00 2001
From: Yaman Umuroglu <maltanar@gmail.com>
Date: Tue, 29 May 2018 18:20:16 +0200
Subject: [PATCH] VTA and TVM on PYTHONPATH, also pass to sudo (#42)

---
 vta/apps/pynq_rpc/README.md | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/vta/apps/pynq_rpc/README.md b/vta/apps/pynq_rpc/README.md
index fb9688853..bb5f9b0b6 100644
--- a/vta/apps/pynq_rpc/README.md
+++ b/vta/apps/pynq_rpc/README.md
@@ -50,11 +50,16 @@ cd ~/vta
 make -j2
 ```
 
+Add VTA and TVM to PYTHONPATH:
+```
+export PYTHONPATH=$PYTHONPATH:/home/xilinx/vta/python:/home/xilinx/vta/nnvm/tvm/python
+```
+
 The last stage will build the `vta/lib/libvta.so` library file. We are now ready to launch the RPC server on the Pynq. In order to enable the FPGA drivers, we need to run the RPC server with `sudo` privileges.
 ```bash
 ssh xilinx@192.168.2.99 # ssh if you haven't done so
 cd ~/vta
-sudo ./apps/pynq_rpc/start_rpc_server.sh # pw is xilinx
+sudo PYTHONPATH=$PYTHONPATH ./apps/pynq_rpc/start_rpc_server.sh # pw is xilinx
 ```
 
 You should see the following being displayed when starting the RPC server:
-- 
GitLab