Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GIMP python script from command line
#6
Big Grin 
(12-08-2020, 07:28 AM)Ofnuts Wrote: Do you get any output from the Python code (print statements)? Otherwise see here for some hints.

PS: I don't see how Gimp or the Python code could change the status of the directory. OTOH IIRC on recent Windows unknown apps are not always allowed to write files, so maybe you need to give Gimp some privileges.

I've reinstalled as Admin, and I'm able to create a script create a folder (yay!  Big Grin)

Code:
def make_dir():

 mainDir = "D:\\temp\\images"
 folder = "spoon"
 fname = os.path.join(mainDir, folder)

 # make a directory
 os.mkdir(fname)

 msg = "Make a " + folder + " directory!! " + "\n"
 gimp.message(msg)

Now the main thing is trying to work out
(a) how to get some sort of error log feedback and (b) which line/s doesn't it like.
Reply


Messages In This Thread
RE: GIMP python script from command line - by ghoul fool - 12-08-2020, 09:13 AM

Forum Jump: