X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Examples%2FTCPClientServer%2FSConstruct;h=56ff5341fc3194f9d3ba27dbf939dbe7c4dbf6d2;hb=0fb5ed1adf2f67dbf47fdfed3f3c8be989cf3618;hp=8dfea9080626f56947343c3733d821369e740486;hpb=7f343c7361e8eb31951669a70434ab04d39bb268;p=senf.git diff --git a/Examples/TCPClientServer/SConstruct b/Examples/TCPClientServer/SConstruct index 8dfea90..56ff534 100644 --- a/Examples/TCPClientServer/SConstruct +++ b/Examples/TCPClientServer/SConstruct @@ -1,7 +1,9 @@ # -*- python -*- - -import sys -sys.path.extend(['senf/site_scons', '../../site_scons']) +import sys, os, os.path +try: sys.path.append(((_ for _ in (os.path.join(os.path.sep.join(('..' for _ in range(_))),d, + 'site_scons') for d in ('','senf','Senf') for _ in range(len(os.getcwd().split('/')))) + if os.path.exists(_))).next()) +except: pass import senfutil env = Environment()