Hello,

I want to use envdotpy [1] since virtualenvwrapper is written for bash
and cannot be used in fish.

I'm trying to adapt the script for fish but I'm stuck at this part:

    # activate the virtualenv
    script_path = os.path.join(env_path, 'scripts', 'activate.bat')
    os.system('cmd.exe /K "%s"' % script_path)

How can I source the activate.fish (which is part of the virtualenv
package) from python?

I tried:

    # activate the virtualenv
    script_path = os.path.join(env_path, 'bin', 'activate.fish')
    os.system('fish -c "%s"' % script_path)

but it fails. It works fine when I do . /path/to/bin/activate.fish
directly in fish.

Any suggestions?

Best regards

Michael

[1] https://bitbucket.org/jdriscoll/envdotpy/overview

------------------------------------------------------------------------------
Fulfilling the Lean Software Promise
Lean software platforms are now widely adopted and the benefits have been 
demonstrated beyond question. Learn why your peers are replacing JEE 
containers with lightweight application servers - and what you can gain 
from the move. http://p.sf.net/sfu/vmware-sfemails
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to