Mkdir fails if directory already exists, which breaks (re)build on Linux, at 
least.

Using this:

# Mkdir fails if dir already exists..use this instead.
def mkdir_path(path):
     if not os.access(path, os.F_OK):
         os.mkdirs(path)

and then calling mkdir_path instead of Execute(Mkdir
fixes the problem for me.

Thanks,
Ben

-- 
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com

_______________________________________________
Xorp-hackers mailing list
[email protected]
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers

Reply via email to