~a-roehler/python-mode/XEmacs-compat-test

« back to all changes in this revision

Viewing changes to python-mode.el

  • Committer: Andreas Roehler
  • Date: 2012-01-09 07:33:49 UTC
  • Revision ID: andreas.roehler@online.de-20120109073349-zvduc2mdhjpwdk65
`py-load-pymacs' sets load path incorrectly, lp:913289, fixed

Thanks Richard Everson

Show diffs side-by-side

added added

removed removed

Lines of Context:
7474
7474
  (interactive)
7475
7475
  (if (or (not (boundp 'py-install-directory)) (not (stringp py-install-directory)))
7476
7476
      (error "`py-install-directory' not set, see INSTALL")
 
7477
    (add-to-list 'load-path (concat py-install-directory "/pymacs"))
7477
7478
    (load (concat py-install-directory "/pymacs/pymacs.el") nil t)
7478
 
    (add-to-list 'load-path (concat py-install-directory "/pymacs/pymacs.el"))
7479
 
    (setenv "PYMACS_PYTHON" "python2.7")
 
7479
    (setenv "PYMACS_PYTHON" (py-choose-shell))
7480
7480
    (autoload 'pymacs-apply "pymacs")
7481
7481
    (autoload 'pymacs-call "pymacs")
7482
7482
    (autoload 'pymacs-eval "pymacs")