Does buildout have a way to issue its version of sys.path?
Ok, I use vim in the console. I have python compiled into it, the system python. If i could get the value of sys.path in my buildout, I could add it to vim and then have omni completion for everything in the buildout. That's the goal. So: is there a way to get sys.path's value in a buildout? I'd like to make things a bit more automatic than copying the sys.path invocation in bin/buildout itself...
On Sat, May 8, 2010 at 3:16 AM, kevin
Ok, I use vim in the console. I have python compiled into it, the system python. If i could get the value of sys.path in my buildout, I could add it to vim and then have omni completion for everything in the buildout. That's the goal.
So: is there a way to get sys.path's value in a buildout? I'd like to make things a bit more automatic than copying the sys.path invocation in bin/buildout itself...
I'm not sure what you mean. Do you mean getting it as a value you could use in a variable substitution? Is so, you could write a recipe that made it available that way. Jim -- Jim Fulton
with minitage.recipe.scripts, you can generate a '.env' file, then when you source it put the appropriate 'PYTHONPATH' in the current environment. see: http://pypi.python.org/pypi/minitage.recipe.scripts/1.53#generating-an-envri... I use it mainly for vim with that plugin: http://hg.cryptelium.net/hg/system/config/vim/file/6e74640f22b9/ftplugin/pyt... Le 08/05/2010 09:16, kevin a écrit :
Ok, I use vim in the console. I have python compiled into it, the system python. If i could get the value of sys.path in my buildout, I could add it to vim and then have omni completion for everything in the buildout. That's the goal.
So: is there a way to get sys.path's value in a buildout? I'd like to make things a bit more automatic than copying the sys.path invocation in bin/buildout itself... _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
-- Cordialement, KiOrKY GPG Key FingerPrint: 0x1A1194B7681112AF
see:http://pypi.python.org/pypi/minitage.recipe.scripts/1.53#generating-a...
That is exactly what I was looking for. Thanks!
I use it mainly for vim with that plugin:http://hg.cryptelium.net/hg/system/config/vim/file/6e74640f22b9/ftplu...
Lagniappe! I did not know about this plugin. It's almost sad how happy I am about this... Much appreciated!
participants (3)
-
Jim Fulton
-
kevin
-
kiorky