Callie Bertsche wrote:
I have a closely related note. How do I write to a relative path with
python? Example,
source = open('/../../directory/subdirectory/file.extension')
What am I missing?
--
http://mail.python.org/mailman/listinfo/python-list
Leave off the beginning slash.
-Matt
--
http:/
I have a closely related note. How do I write to a relative path with
python? Example,
source = open('/../../directory/subdirectory/file.extension')
What am I missing?
--
http://mail.python.org/mailman/listinfo/python-list
Ben Keshet a écrit :
I have a probably simple beginner's question -
I have a script that I am currently able to print its output. instead,
i want to write it into a file - I tried different versions of write()
but might have gotten the syntax wrong.
The syntax is:
fileobj.write(somethin