This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Python path

Tags: None
(comma "," separated)
utics
Registered Member
Posts
2
Karma
0

Python path

Fri Mar 04, 2022 3:45 pm
Hi,

I'm using KDevelop version 5.6.1

I want to specify 2 custom paths to my PYTHONPATH.

From my understanding, I have to do this in:
Project Configuration -> Language Support -> Includes/Imports


I've added the two folders that I want to that list, but when I run my script, it still can't find an import in my Python module.
I'm also using a specific python interpreter that's in my venv.

How can I add 2 custom paths to my PYTHONPATH in KDevelop? Am I doing something incorrectly?

EDIT: In the termal, this will make it work:
PYTHONPATH=/my/path1:/my/path2 ./KDevelop-5.6.1-x86_64.AppImage

However, I thought there was something in the KDevelop's GUI to not make that necessary. Any thoughts how I can include multiple paths to my PYTHONPATH in KDevelop without the terminal?

EDIT 2: the problem seems to only exist in the AppImage version of KDevelop (v5.6). I tried KDevelop (v5.5) from the Ubuntu distribution package, and it works fine. When I configure a new environment to use a custom PYTHONPATH, and I tell my Launcher to use my custom environment, it works (but it doesn't work in the AppImage version).

Thanks,


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]