在emacs中使用pdb时如何指定路径? [英] How to specifiy path when using pdb in emacs?
问题描述
PYTHONPATH = lib
。但是当我键入 运行pdb(像这样):PYTHONPATH = lib pdb ./pychess
。
Emacs给我一个错误,表示找不到文件PYTHONPATH = lib。在emacs中运行pdb时如何指定路径?在终端PYTHONPATH = lib pdb ./pychess运行正常,但不是在emacs。
哦,我得到它只是键入 PYTHONPATH = lib emacs
在启动emacs时。不确定在启动后改变路径...
你可以尝试在emacs中设置环境变量这样
(setenvPYTHONPATHlib)
I am trying to use pdb in emacs. I need to change path to PYTHONPATH=lib
. But when I typed
Run pdb (like this): PYTHONPATH=lib pdb ./pychess
.
Emacs gives me an error saying the file PYTHONPATH=lib isn't found. How do I specify path when running pdb in emacs? In terminal PYTHONPATH=lib pdb ./pychess runs fine, but not in emacs.
Oh I got it just type PYTHONPATH=lib emacs
when launching emacs. Not sure about changing path after launching though...
you can try to set the environment variable with in the emacs (say putting in .emacs
or using M-:) like this
(setenv "PYTHONPATH" "lib")
这篇关于在emacs中使用pdb时如何指定路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!