Port everything to work with Python 2.6 and (hopefully) 3.0.
Phew, this was harder than I expected, mostly because I noticed I never grokked metaclasses all that well. Now it's slightly better ;-). git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1344 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
59ebcace2a
commit
cd10080cca
8 changed files with 77 additions and 138 deletions
|
@ -70,8 +70,8 @@ PythonCPUPolicyManager::PythonCPUPolicyManager()
|
|||
// environment variables.
|
||||
|
||||
GlobalPreferences& prefs = GlobalPreferences::get_instance();
|
||||
Glib::ustring importdirs = "import sys\n"
|
||||
"sys.path[:0] = [ ";
|
||||
|
||||
Glib::ustring importdirs = "import sys; sys.path[:0] = [ ";
|
||||
for_each(prefs.get_policy_dirs().begin(),
|
||||
prefs.get_policy_dirs().end(),
|
||||
pol_dirs_concat(importdirs));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue