Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #96906

Re: Python 2.7 Configuration

From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: Python 2.7 Configuration
Date 2015-09-20 20:30 -0400
Organization IISS Elusive Unicorn
References <BLU436-SMTP377E882129A70B4814C9329A470@phx.gbl>
Newsgroups comp.lang.python
Message-ID <mailman.15.1442795707.28679.python-list@python.org> (permalink)

Show all headers | View raw


On Sun, 20 Sep 2015 13:13:22 -0400, Ward Kingkade <ward_kingkade@msn.com>
declaimed the following:

>I hold my scripts in another directory that is parallel to but not under the
>one where Python 2.7 resides, so I set the Environment Variable PYTHONPATH

	PYTHONPATH	is used to specify where the Python interpreter will look
for "import" modules from within a running Python script.
	
>to include the directory where my scripts reside.  Unfortunately, I am
>unable to reach them in either the IDLE GUI or the "Python command line" in
>that folder in my start menu.  The only way I have managed to run Python
>scripts is to open an ordinary command prompt from Accessories, navigate to
>the directory with the scripts, and run python from the command prompt in
>that directory.

	If the install (I have always used the ActiveState installs so don't
know what plain Python does on Windows) has set up the environment such
that ".py" files are executable, then putting the script directory on the
regular system PATH should let you run them by entering their name in a
command shell.
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python 2.7 Configuration Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-09-20 20:30 -0400

csiph-web