Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
VB.Net PDF 4.4.7
SuiteCRM Survey Rocket Plugin 1.0
Airbnb Clone Script | Airbnb Clone 4.3.1
IP2Location Geolocation Database 2018
ODBC Driver for Salesforce 1.5
Rapid PHP 2018 15.0
Bytescout BarCode Generator SDK 4.70.0.981
Data Puppy Lite (32-bit) 1.0
ProZ clone script 1.0.3
VideoCap Live Streaming SDK ActiveX 8.5
Magento Web to Print 1.0
dbForge Data Compare for MySQL 5.4
dbForge Query Builder for MySQL 4.3
ODBC Driver for NetSuite 1.2
Rapid CSS 2018 15.0
Top Rated
Output Messenger 1.8.0
Aliexpress Clone- Ec21 Script 1
Indiegogo Clone 3.0
Online Food Ordeing System 1.0
PHP Image Resize Script 1.0
Best Spotify Clone 1.0
Get Random Record Based on Weight 1.0.0
Travel Portal Script 9.29
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Adding the directory of the python executable to the system PATH under windows 
File ID: 64726






Adding the directory of the python executable to the system PATH under windows 
Download Adding the directory of the python executable to the system PATH under windows http://code.activestate.com/recipes/577233-adding-the-directory-of-the-python-executable-to-t/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 8
Submit Rating:
Adding the directory of the python executable to the system PATH under windows  Description
Description: If you install python under windows and then open a command shell (DOS-prompt, you normally get an error message
if you type "python" at the prompt. This is because the directory of the python executable is not in the PATH environment variable.
If you know where you installed python, you can add this via Control Panel -> System -> Advanced -> Environment Variables but this is not very user friendly way of doing things and error prone.

This program, if run by double clicking the file or by dragging the file to a command shell, will add the directory of the executable associated with the .py extension to the PATH env. var (if it is not already in there). It will notify other programs of this change, but unfortunately command.com is not smart enough to understand that. You have to open a new command shell after running the program in order to be able to run "python" at the dos prompt.

If run with the optional command line parameter 'remove' the directory will be removed from the PATH.

License: Freeware

Related: environment, Executable, Path, Python, Variable

O/S:Windows

Downloads: 8



More Similar Code

Designed to aid in the conversion of Python modules to C extension modules while keeping the same interface into the module. This will make it easier to convert existing Python code into C code to give it a speed boost without changing to existing code



This recipe is an enhancement of recipe #544288 to determine the size of Python objects in bytes, The main differences are (1) classes and instances are handled separately, (2) old-style classes are treated as new-style ones, (3) a simple...



This function uses the Vincenty direct algorithm to solve the "forward geodesic problem," which is the problem of computing the endpoint of a geodesic (shortest-distance) path on the ellipsoidal earth, given the start point, a path...



This function solves the "forward geodesic problem," which is to compute the endpoint of a geodesic (shortest-distance) path on the ellipsoidal earth, given the start point, a path length, and a starting azimuth.

In response...



For something I am working on, I needed the ability to scan a supplied directory, adding the directory to the sys.path within Python, and then blanket import the modules within that directory. Following that, I had to filter any builtin or special...



Primary Term to Active Menu Item furthers the goal of using taxonomy to organize your site into channels by tying the Primary Term module to the menu system. Primary Term to Active Menu Item will set the active menu item to the Primary Term, if...



It is the version in global Heart VI1 simulator simulink where the electrical part of heart is followed by a frequency detector to pilot the feedback of CNS,central nervous system who loop and control sinus.Sometime you can have pile-cache...



CommSy is a webbased community system, originally developed at the University of Hamburg, Germany, to support learning/working communities.



Cake is a build system that combines the flexibility of Python build scripts with an incremental build speed that matches build systems written in C/C++. It requires Python 2.4-3.2 and natively supports Windows, Linux, Mac, Cygwin, MSVC and GCC.



Simple Python script to automate the creation of Python executables using py2exe.

User Review for Adding the directory of the python executable to the system PATH under windows
- required fields
     

Please enter text on the image