Python script isn't producing text in data file

Steven D'Aprano steve at pearwood.info
Thu Dec 11 00:18:09 EST 2014


On Wed, 10 Dec 2014 20:23:56 -0800, Docfxit wrote:

> I don't know enough about Python to figure out how to isolate where the
> problem is happening.

Ouch! You have my sympathies. Nevertheless, I'm not going to run your 
code to see what it does. Even if I trusted it, and I don't, I can see 
that it assumes that it is running on Windows (it hard-codes '\\' as a 
directory separator). I'm not running Windows.

(I think it is funny that the script has a Unix "hash-bang" line at the 
top of the script, but is written such that it will only work on Windows.)


I have some questions. The answers may guide you towards a solution.

Has this script ever worked? If so, what changed before it stopped 
working?

When you run the script, does it print any output? If so, what?

Does it write any output to the output file?

What happens if you change the global variable "testing" to True?



-- 
Steven



More information about the Python-list mailing list