From: g0dil Date: Fri, 28 May 2010 21:16:03 +0000 (+0000) Subject: Fix Example SConstruct files to search for senfutil.py in system directory X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=fbd3d0ff298683f08b59f25288d8c243e03b206c;p=senf.git Fix Example SConstruct files to search for senfutil.py in system directory git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1630 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Examples/MCSniffer/SConstruct b/Examples/MCSniffer/SConstruct index b0edf7c..795d7d2 100644 --- a/Examples/MCSniffer/SConstruct +++ b/Examples/MCSniffer/SConstruct @@ -3,7 +3,7 @@ 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 +except: sys.path.append('/usr/lib/senf/site_scons') import senfutil env = Environment() diff --git a/Examples/MultiMCLoop/SConstruct b/Examples/MultiMCLoop/SConstruct index c1f79a3..a74495f 100644 --- a/Examples/MultiMCLoop/SConstruct +++ b/Examples/MultiMCLoop/SConstruct @@ -3,7 +3,7 @@ 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 +except: sys.path.append('/usr/lib/senf/site_scons') import senfutil env = Environment() diff --git a/Examples/RateStuffer/SConstruct b/Examples/RateStuffer/SConstruct index 0957455..14e75f3 100644 --- a/Examples/RateStuffer/SConstruct +++ b/Examples/RateStuffer/SConstruct @@ -3,7 +3,7 @@ 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 +except: sys.path.append('/usr/lib/senf/site_scons') import senfutil env = Environment() diff --git a/Examples/Sniffer/SConstruct b/Examples/Sniffer/SConstruct index 691495f..9ed8c8a 100644 --- a/Examples/Sniffer/SConstruct +++ b/Examples/Sniffer/SConstruct @@ -3,7 +3,7 @@ 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 +except: sys.path.append('/usr/lib/senf/site_scons') import senfutil env = Environment() diff --git a/Examples/TCPClientServer/SConstruct b/Examples/TCPClientServer/SConstruct index 56ff534..4af5a54 100644 --- a/Examples/TCPClientServer/SConstruct +++ b/Examples/TCPClientServer/SConstruct @@ -3,7 +3,7 @@ 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 +except: sys.path.append('/usr/lib/senf/site_scons') import senfutil env = Environment() diff --git a/Examples/UDPClientServer/SConstruct b/Examples/UDPClientServer/SConstruct index 9413402..6c5de0d 100644 --- a/Examples/UDPClientServer/SConstruct +++ b/Examples/UDPClientServer/SConstruct @@ -3,7 +3,7 @@ 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 +except: sys.path.append('/usr/lib/senf/site_scons') import senfutil env = Environment()