need help with game

Raseliarison nirinA nirina at mail.blueline.mg
Wed Apr 2 11:02:52 CEST 2003


> >"BBFoto" <bbfoto2002 at netscape.net> wrote:
> >
> >> I run the Python executable and type in "PySol" at the prompt on the
> >> black screen and get "name not defined."
> >
> >What happens if you type:
> >import PySol

> "module not found"

I suppose 'PySol.py' is the full name of your game and it is located at
'c:/your/game/directory', so you can try:

import os
os.chdir('c:/your/game/directory')
execfile('PySol.py')

or in one line:

execfile('c:/your/game/directory/PySol.py')

nirinA









More information about the Python-list mailing list