Re: Calling a function from a custom module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting "Jason S." <forums@xxxxxxxxxxxxx>:

> Hey all. I'm more or less a beginner when it comes to GIMP scripting  
>  (though I
> do have a few years of exp in general development) and I've run into a bump
> with PyGimp that I was hoping someone might be able to give me a hand with.
>
> As general practice, I've written a function that I put inside a file called
> "ofstream.py" (placed in the same folder as gimpfu.py), which consists of:
>
> def fout:
>     f = open("C:\testFile.dat")
>     f.write("Hello World!")
>     f.close()

Doesn't the backslash need to be escaped in Python string constants?

_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux