i'm new to python script , i'm getting following error while executing
AttributeError: class 'org.python.mod ules.os' has no attribute 'walk'
my code is :
AttributeError: class 'org.python.mod ules.os' has no attribute 'walk'
my code is :
Code:
class Client(Object): def __init__(self, props): self.props = props System.setProperty("orbitz.props", props) paths = [] dn = os.path.dirname(props) paths.append(File(dn)) sar = dn for root, dns, fns in os.path.walk(sar): for fn in fns: if fn.endswith("zip") or fn.endswith("jar"): paths.append(File(os.path.join(root, fn))) paths = [File(x.getCanonicalPath()) for x in paths]
Comment