B
B
bdr2016-01-19 14:47:24
Flask
bdr, 2016-01-19 14:47:24

Why is the script not running in python shell?

I am learning to write in flask, for testing work with objects it is often necessary to use the console ... I came across a script that automatically loads models when I start using python filename.py shellit, but I only start the server. What to do? win system...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Ostap Chervak, 2016-01-28
@GreenAnon

Если python не в переменной PATH, нужно указать прямой путь к интерпретатору.
Т.е. python filename.py shell ->

C:\Python<YOURVERSION>\python.exe filename.py shell

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question