fso-frameworkd (0.8.5.1-1) 05_fix-installprefix-in-config.py.patch

Summary

 framework/config.py |   10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

    
download this patch

Patch contents

Fix installprefix for Debian
--- fso-frameworkd.orig/framework/config.py
+++ fso-frameworkd/framework/config.py
@@ -97,15 +97,9 @@
 rootlogger.addHandler( handler )
 
 #
-# compute install prefix
+# fixed installprefix for Debian (auto sensing does not work, due to python-support)
 #
-installprefix = "/" # unknown first
-searchpath = "/usr/local /usr /local/pkg/fso /opt".split()
-thisdirname = os.path.dirname( __file__ )
-for p in searchpath:
-    if thisdirname.startswith( p ):
-        installprefix = p
-        break
+installprefix = "/usr"
 
 logging.info( "Installprefix is %s" % installprefix )