X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Examples%2FUDPClientServer%2FSConstruct;h=6c5de0dc2665cc498452571e003153e493a47052;hb=f08685d9795a3be20ce5c7a337087358ccd77eb5;hp=33efa6c82c3834672891b2da55d8622034ad3145;hpb=7f343c7361e8eb31951669a70434ab04d39bb268;p=senf.git diff --git a/Examples/UDPClientServer/SConstruct b/Examples/UDPClientServer/SConstruct index 33efa6c..6c5de0d 100644 --- a/Examples/UDPClientServer/SConstruct +++ b/Examples/UDPClientServer/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: sys.path.append('/usr/lib/senf/site_scons') import senfutil env = Environment()