Hi guys!
I start using Python few days ago, for a game server ( it'a an online game ). I made a server for that game, I start it on my pc, and for do this I need to start Server.py too, or, it wouldn't connect to the server.
I host the server filles on a Python host, how i can start the Server.py using a command in Python's console? ( on the host site )
I have the Server.py fille, on / > home > elyos > transformice > Server.py
I start a new Python console ( is the version important?
Python: 2.7 / 2.6 / 3.2 ? )
and then what I write to start the Server.py file?
elyos
0
Newbie Poster
Recommended Answers
Jump to PostFirst off, it isn't in most cases necessary to enter into the Python console itself to run a file; you can instead just open a system console window and use
python Server.py
and the program should run. For that matter, if you are running Windows, the …
Jump to PostIt wont work like that. Exit the Python console and then type
`python Server.py'You can't run a script from within the interpreter.
All 8 Replies
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
elyos
0
Newbie Poster
4evrmrepylrning
0
Newbie Poster
TrustyTony
888
pyMod
Team Colleague
Featured Poster
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
elyos
0
Newbie Poster
TrustyTony
888
pyMod
Team Colleague
Featured Poster
elyos
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.