I have a problem: When I try to run anything that I’ve made all that happens is a black, cmd type box pops up and then before I can read what it says it closes.
These are the scripts I was trying:
import direct.directbase.DirectStart
run()
and:
import direct.directbase.DirectStart
#Load the first environment model
environ = loader.loadModel(“models/environment”)
environ.reparentTo(render)
environ.setScale(0.25,0.25,0.25)
environ.setPos(-8,42,0) #Run the tutorial
run()
Does anyone know what the problem is or how it can be fixed?
use a full qualified path to your python exe in your command line.
Ex instead of typing you should type
<“C:\MyPython\Bin\python.exe” myscript.py>
Note a) replace C:\MyPython\Bin\python.exe by the real path to your python.exe
Note b) you must be in the same directory that myscript.py for this to work.