Comment 3 for bug 961468

Revision history for this message
Richard Stanton (a-stanton) wrote : Re: [Bug 961468] Re: Bug in function py-separator-char

>
>Strange.
>
>What does M-x describe-function py-separator-char RET tell?

py-separator-char is an interactive Lisp function in `python-mode.el'.

(py-separator-char)

Return the file-path separator char from current machine.
Returns char found.

>May jump to the code then and send its definition?

(defun py-separator-char ()
  "Return the file-path separator char from current machine.
Returns char found. "
  (interactive)
  (let ((erg (replace-regexp-in-string "\n" "" (shell-command-to-string
(concat py-shell-name " -c \"import os; print(os.sep)\"")))))
    (when (interactive-p) (message "Separator-char: %s" erg))
    erg))