Hello Andreas,
apologies for late reply.,

Andreas Röhler <andreas.roeh...@online.de> writes:

>
> Think will drop the whole thing --trying to guess the path from file
> loading-- is error prone anyway.
>
> If Emacs encounters
>
>  (file-name-directory (locate-library "python-mode"))
> before python-mode is loaded, an error will result.

yes, I can see where it fails. I saw your fix on launchpad, Thanks for that.

However it seems emacs will set a variable `load-file-name' when a file being
loaded.  So a reliable way to get the folder name might be:

(file-name-directory load-file-name)

-- 
YYR

_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode

Reply via email to