From: Andrew Gaffney Date: Sun, 29 Nov 2009 02:28:39 +0000 (-0600) Subject: missing modules X-Git-Tag: CATALYST-2.0.10~3^2~78 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=75f36846ef33057ee60b0cd30541348013ed7aaa;p=catalyst.git missing modules --- diff --git a/modules/catalyst/target/generic_stage.py b/modules/catalyst/target/generic_stage.py index 491c6fc2..2c88ad5a 100644 --- a/modules/catalyst/target/generic_stage.py +++ b/modules/catalyst/target/generic_stage.py @@ -906,9 +906,9 @@ class generic_stage_target(generic_target): """ for x in self.settings.keys(): """ Sanitize var names by doing "s|/-.|_|g" """ - varname="clst_"+string.replace(x,"/","_") - varname=string.replace(varname,"-","_") - varname=string.replace(varname,".","_") + varname = "clst_" + x.replace("/", "_") + varname = varname.replace("-", "_") + varname = varname.replace(".", "_") if isinstance(self.settings[x], str): """ Prefix to prevent namespace clashes """ #os.environ[varname]=self.settings[x] diff --git a/modules/catalyst/util.py b/modules/catalyst/util.py index 503ac14e..a37cc0af 100644 --- a/modules/catalyst/util.py +++ b/modules/catalyst/util.py @@ -2,7 +2,7 @@ Collection of utility functions for catalyst """ -import sys, traceback, os, re, time, shutil, glob +import sys, traceback, os, re, time, shutil, glob, stat import catalyst from catalyst.error import * from catalyst.output import *