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

setting working directory for python debug launch

Tags: None
(comma "," separated)
vaclavh
Registered Member
Posts
4
Karma
0
Hello all,
I like KDevelop I would like to use it for some development with python.

I have a problem. I cannot set working directory for debug launch in version 1.6.0. I went already through source codes of newer version 1.6.1 and this seems to be fixed there. But I cannot use it since they need python3.
Is there some workaround how launch debugging in a specific directory? Or cannot you provide a patch for this?

There is also some minor issue. Where is the standard output from python execution? Run window shows it only after termination of program.

Thanks in advance for help.
vaclavh
Registered Member
Posts
4
Karma
0
Finally I made a patch. You can apply it to version v1.6.0 of kdev-python, if you have it downloaded as a git repository using command:
Code: Select all
git apply py_working_dir_debug.patch


------------
btw. how can I attach file here?
vaclavh
Registered Member
Posts
4
Karma
0
I did not figure out how to post files here. The patch is here:

http://uloz.to/x8JgogDx/py-working-dir-debug-patch

update: This could be english version of the page:

http://www.ulozto.net/x8JgogDx/py-worki ... ebug-patch

Last edited by vaclavh on Thu Apr 10, 2014 1:10 pm, edited 1 time in total.
User avatar
kfunk
KDE Developer
Posts
53
Karma
0
OS
Uhm, could at least post that on some comprehensible site? I don't even know where to click when following your link. Use pastebin.kde.org, if possible.
vaclavh
Registered Member
Posts
4
Karma
0
Sorry, I though that the site automatically turns to english version, if accessed from abroad.

Patch at pastebin.kde.org:

http://pastebin.kde.org/pfcpe05oj
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Hi,

this is already fixed in 1.6 too, it was done in commit 22040b8f7 and git says:
Code: Select all
 git branch --contains 22040b8f7
  1.6
  1.6-py3
  master
* python3


It's not in the 1.6.0 release, though. I will do an 1.6.1 release for the python2 branch some day, then it will be there.

Still, thanks for your effort!

Greetings,
Sven


I'm working on the KDevelop IDE.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
In regards to this forum - for hosting reasons the support for uploading user files is disabled i'm afraid.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]