[Geany-Users] Use python virtualenvs in Geany

Sayth Renshaw flebber.crue at xxxxx
Sun Feb 2 00:12:12 UTC 2014

OK using vanilla virtualenv(no wrapper) and with built in project from
geany I have ~/Projects/Test/bin/activate for virtualenv.

The project is open and so %p as working directory works perfectly, however
it returns error on source /bin/sh:1 :source "not found.

Updated the command to source bin/activate; python "%f" as thats the usual
command line activation. still same error.

So it doesn't seem to activate, the command works ok in the terminal

Launching from a terminal with venv active does seem to work.


On Sat, Feb 1, 2014 at 11:56 PM, Enrico Tröger <enrico.troeger at uvena.de>wrote:

> On 01/02/14 00:58, Sayth Renshaw wrote:
> > Thanks for the help. I use virtualenvwrapper and am comfortable with it.
> >
> > Will just start from with env at moment and play with the build commands.
> >
> > Perhaps I was over thinking it.
> I don't use virtualenvwrapper and so don't know it very much. I
> personally rather like to work with virtualenv directly,
> virtualenvwrapper always caused me more troubles than it solved.
> That said and putting virtualenvwrapper aside, it should be quite easy:
> create a project in Geany per virtualenv and adjust the build commands.
> Without having tested it, it should be sufficient to just use the Python
> executable from the bin directory of the corresponding virtualenv as
> this interpreter executable already knows about the paths. No sure how
> this works but it does. This way you can save you the hassle of
> activating the virtualenv.
> As said, I didn't test it, but I use the 'specific python executable'
> trick on production machines to start cronjobs and other management
> commands in some Django projects.
> Regards,
> Enrico
> --
> Get my GPG key from http://www.uvena.de/pub.asc
> _______________________________________________
> Users mailing list
> Users at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/users/attachments/20140202/a0dd76f4/attachment-0001.html>

More information about the Users mailing list