X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Examples%2FSniffer%2FSConstruct;h=6f3a70e67c6e1892d4c7e8bebaa586db7f886eaa;hb=9762e8c5d2f6c1264ba97acd3e589f6fa8f522c6;hp=87513736ae50e4a85f9ee443e0732197886a28b6;hpb=7f343c7361e8eb31951669a70434ab04d39bb268;p=senf.git diff --git a/Examples/Sniffer/SConstruct b/Examples/Sniffer/SConstruct index 8751373..6f3a70e 100644 --- a/Examples/Sniffer/SConstruct +++ b/Examples/Sniffer/SConstruct @@ -1,7 +1,7 @@ # -*- python -*- -import sys -sys.path.extend(['senf/site_scons', '../../site_scons']) +import sys, os, os.path +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()) import senfutil env = Environment()