- # so that plc.d/{api,postgres} can create configs/site.xml
- dirname = os.path.dirname (save)
- if (not os.path.exists (dirname)):
- os.makedirs(dirname,0755)
- if (not os.path.exists (dirname)):
- print "Cannot create dir %s - exiting" % dirname
+ # so that plc.d/{api,postgres} can create configs/site.xml
+ dirname = os.path.dirname(save)
+ if (not os.path.exists(dirname)):
+ os.makedirs(dirname, 0o755)
+ if (not os.path.exists(dirname)):
+ print("Cannot create dir %s - exiting" % dirname)