"""
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]
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 *