A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20110128/44c84b95/attachment.html below:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 28/01/2011 16:29, Brian Curtin wrote:
    <blockquote
      cite="mid:AANLkTik35dsnN_uE-3GhKz9_P8ouQ3eqD9rv1A11hStO@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">On Fri, Jan 28, 2011 at 10:12, anatoly
        techtonik <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:techtonik@gmail.com">techtonik@gmail.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          Hi, I'd like to<br>
          <br>
          You probably know that after installation on Windows system it
          is<br>
          possible to call Python from Explorer's Run dialog (Win-R). It
          is<br>
          because Python path is added to App Paths registry key and
          Windows<br>
          Explorer shell checks this key when looking for executable.<br>
          <br>
          But Python doesn't work from cmd session and, more
          importantly,<br>
          *Python doesn't work from .bat files*. It is because cmd shell
          doesn't<br>
          know about App Paths and relies on system PATH to find
          executable. As<br>
          far as I remember, there is no function in Python stdlib
          either, that<br>
          executes processes and does lookups in App Paths.<br>
          <br>
          I never paid much attention to this fact, because I put
          several .bat<br>
          files for every 25, 26, 27, 31 and 32 version of Python into
          PATH<br>
          manually. But when bootstrap script for build environment of
          Native<br>
          Client (NaCl) said that I have no Python available and started
          to<br>
          install its own, I've asked myself - "How come? There are 5!
          possible<br>
          versions of Python on my system." It appeared that the
          following .bat<br>
          file doesn't work:<br>
          <br>
          ---cut mypy.bat--<br>
          python.exe<br>
          ---cut mypy.bat--<br>
          <br>
          C:\&gt;mypy.bat<br>
          <br>
          C:\&gt;python.exe<br>
          'python.exe' is not recognized as an internal or external
          command,<br>
          operable program or batch file.<br>
          <br>
          <br>
          I've seen about 7 requests to add Python into %PATH% in
          installer. All<br>
          closed with no result, but with some fear and uncertainty.
          Martin<br>
          feared that MSI installers are not able to remove entry from
          PATH and<br>
          even if they can, they may kill the whole PATH instead of
          removing<br>
          just one entry.<br>
          <br>
          To prove or dispel these fears, I've just
          installed/uninstalled<br>
          Mercurial from mercurial-1.7.3-1-x86.msi and App Engine from<br>
          GoogleAppEngine-1.4.1.msi several times. Both add entries to
          PATH and<br>
          both remove them without any further problems. Should we
          finally add<br>
          this to 3.2 installer for Python?<br>
          <font color="#888888"><br>
            --<br>
            anatoly t.</font></blockquote>
        <div><br>
        </div>
        <div>Definitely not for 3.2, but this is something I'd like to
          look into for 3.3.</div>
        <div><br>
        </div>
        <div>Recently I've talked to two Python trainers/educators and
          the major gripe their attendees see is that you can't just sit
          down and type "python" and have something work. For
          multi-Python installs, we'll have to define what that
          "something" is, but I think it should be possible for the
          installer to optionally put Python into the path, and to also
          remove itself on uninstall.</div>
        <div><br>
        </div>
      </div>
    </blockquote>
    <br>
    I've helped quite a few "python newbies" on Windows who are also
    surprised / frustrated on learning that "python" on the command line
    doesn't work after installing python.<br>
    <br>
    All the best,<br>
    <br>
    Michael Foord<br>
    <br>
    <blockquote
      cite="mid:AANLkTik35dsnN_uE-3GhKz9_P8ouQ3eqD9rv1A11hStO@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">
        <div>One of said trainers is running a course inside my company
          right now and the training room VMs they are running on do not
          have the path setup. Some users were puzzled as to why "python
          foo.py" doesn't work, but executing "foo.py" does (via file
          association).</div>
        <div><br>
        </div>
        <div>One quick-and-dirty solution was to create a "Command
          Shell" shortcut in the start menu which would just be a batch
          file that adds Python to the path for that cmd session. It
          would be kind of similar to the "Python (command line)"
          shortcut, which uses pythonw.exe. I think we can do better
          than this, though.</div>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Python-Dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Python-Dev@python.org">Python-Dev@python.org</a>
<a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/listinfo/python-dev">http://mail.python.org/mailman/listinfo/python-dev</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk">http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.voidspace.org.uk/">http://www.voidspace.org.uk/</a>

May you do good and not evil


May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing <a class="moz-txt-link-freetext" href="http://www.sqlite.org/different.html">http://www.sqlite.org/different.html</a>
</pre>
  </body>
</html>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4