<div dir="ltr"><div><div><div><div>OK using vanilla virtualenv(no wrapper) and with built in project from geany I have ~/Projects/Test/bin/activate for virtualenv.<br><br></div>The project is open and so %p as working directory works perfectly, however it returns error on source /bin/sh:1 :source "not found.<br>
<br></div>Updated the command to source bin/activate; python "%f" as thats the usual command line activation. still same error.<br><br></div>So it doesn't seem to activate, the command works ok in the terminal <br>
<br><br></div><div>Launching from a terminal with venv active does seem to work.<br><br><br></div>Sayth<br><div><div><div><div><div></div></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sat, Feb 1, 2014 at 11:56 PM, Enrico Tröger <span dir="ltr"><<a href="mailto:enrico.troeger@uvena.de" target="_blank">enrico.troeger@uvena.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 01/02/14 00:58, Sayth Renshaw wrote:<br>
> Thanks for the help. I use virtualenvwrapper and am comfortable with it.<br>
><br>
> Will just start from with env at moment and play with the build commands.<br>
><br>
> Perhaps I was over thinking it.<br>
<br>
</div>I don't use virtualenvwrapper and so don't know it very much. I<br>
personally rather like to work with virtualenv directly,<br>
virtualenvwrapper always caused me more troubles than it solved.<br>
<br>
That said and putting virtualenvwrapper aside, it should be quite easy:<br>
create a project in Geany per virtualenv and adjust the build commands.<br>
Without having tested it, it should be sufficient to just use the Python<br>
executable from the bin directory of the corresponding virtualenv as<br>
this interpreter executable already knows about the paths. No sure how<br>
this works but it does. This way you can save you the hassle of<br>
activating the virtualenv.<br>
As said, I didn't test it, but I use the 'specific python executable'<br>
trick on production machines to start cronjobs and other management<br>
commands in some Django projects.<br>
<br>
Regards,<br>
Enrico<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Get my GPG key from <a href="http://www.uvena.de/pub.asc" target="_blank">http://www.uvena.de/pub.asc</a><br>
<br>
</font></span><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.geany.org">Users@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>