python node can't write to file?

   2983   4   1
User Avatar
Member
28 posts
Joined: Nov. 2015
Offline
I dropped down a python node and tried to write some text to a file, but it gives me “permission denied”.

Attachments:
foo.png (6.2 KB)

User Avatar
Member
897 posts
Joined: July 2018
Offline
Have you tried using an absolute path? Normally Houdini points to the install location when using just a file name like that (to be able to easily point at defaults that come with the program).
B.Henriksson, DICE
User Avatar
Member
28 posts
Joined: Nov. 2015
Offline
Yeah, I tried C:\foo.txt with the same result
User Avatar
Member
897 posts
Joined: July 2018
Offline
And creating the file manually first?
B.Henriksson, DICE
User Avatar
Member
28 posts
Joined: Nov. 2015
Offline
That did the trick! Thanks.
  • Quick Links