HELP!

Return to Installation

HELP!

Postby Lindir The Green » Fri Jul 15, 2005 11:34 am

I am trying to figure out how to run the first program in the tutorial.
It says that I am supposed to:

"create a text file and save it with the .py extension. PYPE and IDLE are Python-specific text-editors, but any text editor will work. Enter the following text into your Python file:

import direct.directbase.DirectStart
run()

To run your program, type this at the command prompt:

ppython filename.py"

So where am I supposed to put this text file?
Which command prompt am I supposed to run this at?

I installed python, and then installed panda3d, taking the default everything.

I have WinXP
Lindir The Green
 

xyz

Postby Josh Yelon » Fri Jul 15, 2005 1:13 pm

> So where am I supposed to put this text file?

For example, you could put it here:

C:\ChickenTastesGood\MyProgram.py

But really, anywhere. Much like you can put a word processing document in any folder, you can put a panda program in any folder.

> Which command prompt am I supposed to run this at?

Command prompt is a program included with Windows. On my computer, you'll find it in:

Start Menu-->Accessories-->Command Prompt

This program pops up a prompt, where you can type commands. To run your program, you'd type the command to switch to the appropriate folder, then type the ppython command:

C:\Windows> cd \ChickenTastesGood
C:\ChickenTastesGood> ppython MyProgram.py
Josh Yelon, Teacher, Carnegie Mellon Entertainment Technology Center
Josh Yelon
 
Posts: 1360
Joined: Wed Mar 30, 2005 8:30 pm


Return to Installation

Who is online

Users browsing this forum: No registered users and 0 guests

cron