duckduck10

Creating a text file on python

Discussion created by duckduck10 on Jul 20, 2012
Latest reply on Jul 25, 2012 by duckduck10
[PHP][/PHP]

I have a toolbox where I have created a python script. I am trying to create a text file called draft where I am writting in some information. Every time I run my script I get the followign error:

<type 'exceptions.IOError'>: [Errno 13] Permission denied: 'draft'
Failed to execute (Script).

However, when I go to properties and and "re-set" the source, the script it works again, eventhough the previous source was the correct source. The script will then run fine until I close ArcMap and open it again. I get the same error and once I "re-set" the source it works again.

Any ideas?

Outcomes