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
Rentonn - Airbnb clone 1.0
VisualNEO for Windows 18.08.31.0
SentiVeillance SDK Trial 7.0.191272
dbForge SQL Complete 6.1
Uber for E-Scooters 1.0
ODBC Driver for MySQL 2.4
dbForge Schema Compare for MySQL 4.4
dbForge Studio for MySQL 8.1
dbForge Query Builder for MySQL 4.4
dbForge Data Compare for MySQL 5.5
Aqua Data Studio 19.5
ConyEdit for Windows 1.1.1
GetOrgChart 2.5.3.0
Database Workbench Pro 5.6.0
.Net VCL for Delphi 1.0.0.0
Top Code
MCU 8051 IDE 1.4.7
Project and Process Management Software 1.0
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
GUI for fuzzy based Washing Machine 1.0
ZOOM / PAN CONTROLS With Dynamic Image & Settings 1.0
Panel Method Based 2-D Potential Flow Simulator 1.0
MLM Unilevel Plan Script 1.0.4
MLM Software ONE 1.5.46
queue and stack classes 1.0
Taxi Management System - Vaama Taxi 1.0
Online Vacation Rental Booking Website Script 4.3.0
Ticket Booking System 1.0
CoffeeCup Free HTML Editor 8.0
Uber for E-Scooters 1.0
HTMLPad 2007 Pro 8.3
Top Rated
Paste phpSoftPro 1.4.1
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
ATN Mall 2.0
WeBuilder 2015 13.3
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...



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.



Ruby has the functionality of being able to add a method to a class at an arbitrary point in your code. I figured Python must have some way for allowing this to happen, and it turned out it did. The method is available instantly to all already...

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

Please enter text on the image