X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Examples%2FRateStuffer%2FSConstruct;h=14e75f3d0dfd22f91f2dfe6e53b4803d4e389e74;hb=834416e1c5669c1687d63e29b8055afe3b44ad63;hp=e19b72f98b931114d7fe356e8f457266d41adba9;hpb=7f343c7361e8eb31951669a70434ab04d39bb268;p=senf.git diff --git a/Examples/RateStuffer/SConstruct b/Examples/RateStuffer/SConstruct index e19b72f..14e75f3 100644 --- a/Examples/RateStuffer/SConstruct +++ b/Examples/RateStuffer/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()