Re: os.chmod problem

2009-10-13 Thread Victor Subervi
Never mind. I just discovered that os.chmod requires 0755, not just 755. V On Tue, Oct 13, 2009 at 9:26 AM, Victor Subervi wrote: > Hi; > I have the following code: > > if 13 < x < 20: > y += 1 > w += 1 > try: > getpic = "getpic" + str(w

os.chmod problem

2009-10-13 Thread Victor Subervi
Hi; I have the following code: if 13 < x < 20: y += 1 w += 1 try: getpic = "getpic" + str(w) + ".py" try: os.remove(getpic) except: pass code = """#! /usr/bin/pytho