[prev in list] [next in list] [prev in thread] [next in thread] 

List:       klik-devel
Subject:    [klik-devel] [klikclient commit] r1359 -
From:       codesite-noreply () google ! com
Date:       2008-03-09 22:48:01
Message-ID: 00163646c774044808e1291e431c888c () google ! com
[Download RAW message or body]

Author: KillerKiwi2005
Date: Sun Mar  9 15:45:02 2008
New Revision: 1359

Modified:
   trunk/client/trunk/klikclient/lib/klik/execute.py

Log:
Patch to register python modules in /usr/share/pycentral

Modified: trunk/client/trunk/klikclient/lib/klik/execute.py
==============================================================================
--- trunk/client/trunk/klikclient/lib/klik/execute.py	(original)
+++ trunk/client/trunk/klikclient/lib/klik/execute.py	Sun Mar  9 
15:45:02 2008
@@ -125,10 +125,12 @@

 		# HACKS START HERE - we need to remove these if at all possible !!!

+		# WORKING DIRECOTRY
 		# Change the working directory, fixs some apps
 		if len(command) > 0 and len(command[0]) > 0 and command[0][0] == "/":
 			os.environ["FAKECHROOT_WORKING_DIRECTORY"] = os.path.dirname(command[0])
 		
+		# USR LIB PATHS
 		# add all /usr/lib sub folders to LD_LIBRARY_PATH
 		# This fix makes wireshark work, why dosnt wireshark see the union?
 		if cmg.cmg_version == 2:
@@ -136,8 +138,8 @@
 			for dir in directories:
  				os.environ["LD_LIBRARY_PATH"] = os.environ["LD_LIBRARY_PATH"] 
+ ":" + os.path.join(cmg.mount_point_path, dir[1:])
 			
-				
-		# fix python path for unregistered modules... note we arnt byte compiling...!!
+		# PYTHON MODULES
+		# fix python path for unregistered modules... note we arn't byte compiling...!!
 		paths = cmg.find_sub_directories("/usr/share/pycentral")
 		for path in paths:
 			# for each folder add folder/site-packages to python path
_______________________________________________
klik-devel mailing list
klik-devel@kde.org
https://mail.kde.org/mailman/listinfo/klik-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic