Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get path of plugin directory #117

Closed
toewsar opened this issue Mar 29, 2023 · 2 comments
Closed

Get path of plugin directory #117

toewsar opened this issue Mar 29, 2023 · 2 comments

Comments

@toewsar
Copy link

toewsar commented Mar 29, 2023

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
Copy link
Collaborator

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
Copy link
Author

toewsar commented Mar 29, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants