Coder Social home page Coder Social logo

Comments (3)

vbabiy avatar vbabiy commented on May 22, 2024

It looks like the activate.sh shell script updates your PATH.


Original Comment By: Kelsey Hightower

from virtualenv.

vbabiy avatar vbabiy commented on May 22, 2024

Looking at the docs, the "Using Virtualenv without bin/python" section should
give you more details on what activate_this.py does.

http://virtualenv.openplans.org/#using-virtualenv-without-bin-python


Original Comment By: Kelsey Hightower

from virtualenv.

dougn avatar dougn commented on May 22, 2024

This should still update the environment to add bin (or Scripts on windows) to your PATH. This is in keeping with the principal that this activation will extend/override, but not replace a previous activation as denoted in the documentation. It will meanrly cause items to first be searched for in this environment which includes BOTH the modules, and the top level scripts.

To do otherwise causes many more problems. For instance if you use activate_this.py and then try to spawn a call to sphinx-build, it will use the executable from the old env, as that is what is on the PATH, but the module from the new env, as that is what is on the PYTHONPATH.

This is patently wrong.

from virtualenv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.