Commits

Anonymous committed 01ce63b

create directory 'pdb' if it doesnt exist

Comments (0)

Files changed (1)

         with open(outFile,'w') as f:
                 f.write(CSS)
 
+        tmp = os.path.join(
+                        outDirectory,
+                        "pdb"
+        )
+        if not os.path.exists(tmp):
+                os.makedirs(tmp)
+
         for name in gimp.pdb.query() :
                 plugin = pdb[name]
                 outFile = os.path.join(
                         outDirectory,
+                        "pdb",
                         "%s%s"%(slugify(name), ".txt")
                 )
 
-                with open(outFile, 'w') as f :
+                #MessageBox(None, str(outFile), "Hiro, Gaia!", 0)
+
+                with open(outFile, 'w+') as f :
                         f.write("author:\n%s\n"%plugin.proc_author)
                         f.write("date:\n%s\n"%plugin.proc_date)
                         f.write("cpy:\n%s\n"%plugin.proc_copyright)