I have written a small Windows Service compiled to an exe using py2exe, which from I read a file. It works great - however - I can only use an absolute path to access the file, using a relative path won't work. In .net you can do something like:
System.Reflection.Assembly.GetEntryAssembly().Location
To get the path to the .exe file, is there an option similar to this but for Python?
Best Regards,
Anders