# HG changeset patch
# User Edouard Tisserant
# Date 1434706595 -7200
# Node ID 2b4a0d87becb10a6f632919b744226c3d768ade4
# Parent  954d1f42d42dd49b69903a26b4759cd8efd1ab59
Fixed canfestival extension own path resolution

diff -r 954d1f42d42d -r 2b4a0d87becb canfestival/canfestival.py
--- a/canfestival/canfestival.py	Thu Jun 18 11:36:35 2015 +0200
+++ b/canfestival/canfestival.py	Fri Jun 19 11:36:35 2015 +0200
@@ -1,6 +1,6 @@
 import os, sys, shutil
 
-base_folder = os.path.split(sys.path[0])[0]
+base_folder = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
 CanFestivalPath = os.path.join(base_folder, "CanFestival-3")
 sys.path.append(os.path.join(CanFestivalPath, "objdictgen"))