Code Point
September 10, 2010, 06:01:32 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Geshi Sintax Hilighting Mod Installed. Tens of languages available.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: the python interactive shell and import file..........  (Read 1963 times)
allias
Jr. Member
*

Karma: 0
Offline Offline

Posts: 1


« on: April 26, 2009, 06:06:50 PM »

Hello  Cheesy
I m new to programming and i try Python under windows (32bit)
Everything seems pretty fine but there is something that is not clear to me .
I have installed python to C:\Python26  , and in there i have created a new folder called exercises,
so it goes C:\Python26\exercises , so that i store , the scripts i make.
When i open the python interactive shell , and i use the import command ,e.g import file ( for a script that is just called file.py)
the shell does not find the scripts i save on the exercises folder , it only seems to find this way only those that are stored under C:\Python26.
Is there a way to make the interactive shell to look for my scripts , on the exercises folder Huh
  Smiley
Logged
CPN
Administrator
Jr. Member
*****

Karma: 0
Offline Offline

Posts: 11


WWW
« Reply #1 on: April 27, 2009, 01:21:46 AM »

Depending on how you open the interactive shell you should change to the exercises folder before opening the it.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!