Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
75adb00d
Commit
75adb00d
authored
Aug 24, 2008
by
Romain Francoise
Browse files
(run-python): Remove '' from sys.path.
parent
8a445f76
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/progmodes/python.el
lisp/progmodes/python.el
+3
-1
No files found.
lisp/ChangeLog
View file @
75adb00d
2008-08-24 Romain Francoise <romain@orebokech.com>
* progmodes/python.el (run-python): Remove '' from sys.path.
2008-08-23 Glenn Morris <rgm@gnu.org>
2008-08-23 Glenn Morris <rgm@gnu.org>
* progmodes/fortran.el (fortran-tab-mode-string)
* progmodes/fortran.el (fortran-tab-mode-string)
...
...
lisp/progmodes/python.el
View file @
75adb00d
...
@@ -1547,7 +1547,9 @@ buffer for a list of commands.)"
...
@@ -1547,7 +1547,9 @@ buffer for a list of commands.)"
;; invoked. Would support multiple processes better.
;; invoked. Would support multiple processes better.
(
when
(
or
new
(
not
(
comint-check-proc
python-buffer
)))
(
when
(
or
new
(
not
(
comint-check-proc
python-buffer
)))
(
with-current-buffer
(
with-current-buffer
(
let*
((
cmdlist
(
append
(
python-args-to-list
cmd
)
'
(
"-i"
)))
(
let*
((
cmdlist
(
append
(
python-args-to-list
cmd
)
'
(
"-i"
"-c"
"import sys; sys.path.remove('')"
)))
(
path
(
getenv
"PYTHONPATH"
))
(
path
(
getenv
"PYTHONPATH"
))
(
process-environment
; to import emacs.py
(
process-environment
; to import emacs.py
(
cons
(
concat
"PYTHONPATH="
(
cons
(
concat
"PYTHONPATH="
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment