python node can't write to file?
2982
4
1
aoakenfo
Member
28 posts
Joined: Nov. 2015
Offline
April 16, 2017 2:43 p.m.
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)
kahuna031
Member
897 posts
Joined: July 2018
Offline
April 16, 2017 3:55 p.m.
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
aoakenfo
Member
28 posts
Joined: Nov. 2015
Offline
April 16, 2017 4:24 p.m.
Yeah, I tried C:\foo.txt with the same result
kahuna031
Member
897 posts
Joined: July 2018
Offline
April 16, 2017 4:26 p.m.
And creating the file manually first?
B.Henriksson, DICE
aoakenfo
Member
28 posts
Joined: Nov. 2015
Offline
April 16, 2017 4:29 p.m.
That did the trick! Thanks.