Cumulocity-IoT / cumulocity-remote-access-local-proxy

Cumulocity IoT Remote Access Local Proxy
Apache License 2.0
7 stars 9 forks source link

Get path of plugin directory #117

Closed toewsar closed 1 year ago

toewsar commented 1 year ago

Hi,

I'm writing my own plugin in python. I would like to use other files which are a located in the same directory as the plugin itself. Is it possible to find out in which directory the script is located? The common way with __file__ is not possible.

BR Artur

switschel commented 1 year ago

This is not c8ylp related I guess, but have you checked this: https://note.nkmk.me/en/python-script-file-path/ This depends on the python version you are using.

toewsar commented 1 year ago

Why is it not c8ylp related? I'm writing a c8ylp plugin and the solution metions in the link does not work.