Except for the fact that I don't have any idea where "given"
variable comes from. This works perfectly for me. It writes
data into /xrefs/given.log perfectly.
In the future you should cut/paste your code so we can see
enough to help better. Here is my code with a few changes.
import os
import s
First, what version of python are you using? 2.4.2 (and some previous
versions) use file() instead of open(), although open may still work.
also, if your code in the previous post is still using:
outputFname = given + '.log'
outputFile = open(os.path.join(xrefs,outputFname), 'w')
I hope you have
I understand that but I'm still puzzled. Is this the reason why I can't
write files to this directory?
The xrefs directory is created the way I expect it would be using mkdir
but I can't seem to write to it. I thought that my results would be
written to the xrefs directory here but they're ending
if (os.path.isdir(xrefs) == 0):
os.mkdir(xrefs)
os.path.isdir(stuff) returns
True or False
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'm trying to write a script that will create a new directory and then
write the results to this newly created directory but it doesn't seem
to work for me and I don't know why. I'm hoping someone can see my
mistake or at least point me in the right direction.
I start like this capturing the