[mousetrap/gnome3-wip: 62/240] Remove adding src/ to Python path.



commit 5513be984b12c63f0c3dc8b04e43b7107b65be40
Author: Stoney Jackson <dr stoney gmail com>
Date:   Wed Jun 11 09:18:18 2014 -0400

    Remove adding src/ to Python path.
    
    Developers already do this to run MouseTrap in place. Easily done
    with
    
        $ source bin/mt-setup
    
    Or more directly...
    
        $ source bin/mt-add-src-to-pythonpath

 run.py |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/run.py b/run.py
index 51a27fc..f20534b 100644
--- a/run.py
+++ b/run.py
@@ -2,12 +2,6 @@ import cv2
 import os
 import sys
 
-# Add the `src` directory to the system path
-
-PROJECT_PATH = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), "src"))
-
-sys.path.append(PROJECT_PATH)
-
 from mousetrap.vision import Camera, HaarLoader, ImageConverter
 
 # Initialize the camera and get the frame


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]