Hi, Since I'm a Linux user, I went through the following procedure:
I installed emacs 20.7.1 and Python 2.4 I installed python-mode 1.0A into site-lisp I added c:\python24 to my path I put this .emacs on c:\ (see further down - I'm sure you don't need half of it) And everyhing is working fine: python mode is recognized and Ctr-C-C opens a *Python Output* buffer with the results from my script: print 1 ==> 1 Hope that helps, Regards, Philippe ***************************************************************************** (custom-set-variables ;; custom-set-variables was added by Custom -- don't edit or cut/paste it! ;; Your init file should contain only one such instance. '(auto-compression-mode t nil (jka-compr)) '(case-fold-search t) '(current-language-environment "UTF-8") '(default-input-method "rfc1345") '(global-font-lock-mode t nil (font-lock)) '(nil nil t) '(outline-minor-mode t) '(pc-select-meta-moves-sexps t) '(pc-select-selection-keys-only t) '(pc-selection-mode t t) '(save-place t nil (saveplace)) '(show-paren-mode t nil (paren)) '(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify))) '(transient-mark-mode t)) ;(mouse-wheel-mode t) (setq indent-tabs-mode nil) ;;(speedbar) (custom-set-faces ;; custom-set-faces was added by Custom -- don't edit or cut/paste it! ;; Your init file should contain only one such instance. ) ;(setq any mode-customization variables you want here) (autoload 'visual-basic-mode "visual-basic-mode" "Visual Basic mode." t) (autoload 'python-mode "python-mode" "Python mode." t) (setq auto-mode-alist (append '(("\\.\\(py\\)$" . python-mode)) auto-mode-alist)) (setq auto-mode-alist (append '(("\\.\\(frm\\|bas\\|cls\\)$" . visual-basic-mode)) auto-mode-alist)) ***************************************************************************** Rex Eastbourne wrote: > Hi Skip and Philippe. I added the path for Python to PATH, but I still > get the same message (when I try executing the current buffer, I get > the message: "The system cannot find the path specified." > > Philippe, I have the above lines of code in my .emacs file. > > As for my environment, I'm running Emacs 21.4 on Windows XP. > > Thanks a lot! -- http://mail.python.org/mailman/listinfo/python-list