This is my first post on stackoverflow, so if somethings wrong I'm eager to learn!
I'm programming a plugin for Cinema 4d with python. Everything works on Mac, but I'm having problems on Windows with what I'm about to explain.
The plugin needs a path to a server, in case of rendering on a renderserver. I want the user to enter the path once, and to then store it in a .txt file.
for c4d, plugins are being installed, by draging-and-droping the plugin into the plugin folder at for example:
C:/programm files/Maxon/Cinema4D/Plugins/NewPluginGoesHere
In Order to keep everything nice and clean, I want the pathToServer.txt (text file that only stores one line with the path) in the plugin folder as well. When Installing (droping) the plugin into said folder, the .txt file is already there -> Not created by the plugin.
Here comes the problem:
I open and write to the file with
pat