On 29 Jan 2012, at 08:03, Andreas Röhler wrote:
> Am 29.01.2012 04:24, schrieb François Pinard: >> Andreas Röhler<andreas.roeh...@online.de> writes: >> >>> If we provide the next Python-mode/Pymacs release using Make as Pymacs >>> does, the top directory should contain only the minimal requiring, >>> i.e, INSTALL, README etc. >> >> Hi, Andreas, and gang. >> >> Recently, I noticed that pymacs.el within python-mode (should be >> Pymacs.el from now on), has a small local modification. When Emacs >> launches the Python helper, it first does: >> >> " sys.path.insert(1, os.getenv('PYMACS_INSTALL_DIR'));" >> >> Let me comment a bit about this change: >> >> * Nowhere in python-mode README nor INSTALL, this PYMACS_INSTALL_DIR >> environment variable is presented nor explained, while it really >> should. Average Python mode users are unlikely to guess they have to >> set this environment variable prior to calling Emacs. Hi, This was my ugly hack to enable Python to find Pymacs when Pymacs is distributed with python-mode.el and is therefore not on sys.path. There's nothing about it in README or INSTALL because I think it's purely local to the python-mode/pymacs interaction and the general user shouldn't need to know or do anything about it: that environment variable is set by python-mode.el. On the other hand, it would be *much* better to use the distributed, current version of Pymacs, but it's not clear to me how to achieve that if Pymacs is not installed somewhere on the standard sys.path. Best, Richard. _______________________________________________ Python-mode mailing list Python-mode@python.org http://mail.python.org/mailman/listinfo/python-mode