Stop python script

9492
9
Jump to solution
01-27-2014 06:25 AM
floraroumpani
New Contributor
Hello.

I am trying to stop a python script. In the previous version, there was a stop button, that seemed to to the job. But now I cant find a way to interrupt it. I tried sys.exit () , but doesn't seem to work either. What am I missing??
Tags (3)
0 Kudos
1 Solution

Accepted Solutions
JoshuaChisholm
Occasional Contributor III
I think "ESC cancels the current operation", but it doesn't seem to be working for me (using the python window of ArcMap).

Sorry I couldn't help, I hope someone else can!

View solution in original post

0 Kudos
9 Replies
JoshuaChisholm
Occasional Contributor III
Have you tried ctrl+c?
0 Kudos
floraroumpani
New Contributor
Have you tried ctrl+c?



Thank you for the reply,
Yes i have, it doesnt seem to work either.
0 Kudos
JoshuaChisholm
Occasional Contributor III
Hmmm, a few questions:
1) Are you trying to end a script mid process or are you trying to end the script from a specific point in the script?

2) Where are you running the script from? (ArcMap/IDLE)
0 Kudos
floraroumpani
New Contributor
Hmmm, a few questions:
1) Are you trying to end a script mid process or are you trying to end the script from a specific point in the script?

2) Where are you running the script from? (ArcMap/IDLE)




1. i d like to end a script mid process (kill)

2. i am running it from the city engine console for python.
0 Kudos
JoshuaChisholm
Occasional Contributor III
I think "ESC cancels the current operation", but it doesn't seem to be working for me (using the python window of ArcMap).

Sorry I couldn't help, I hope someone else can!
0 Kudos
MichaelVolz
Esteemed Contributor
How about stopping it with the task manager under processes?
0 Kudos
floraroumpani
New Contributor
How about stopping it with the task manager under processes?


Thank you both,

However, even in task manager, it cant be stopped without terminating CityEngine.

😕
0 Kudos
floraroumpani
New Contributor
Thank you very much for your replies!

There seems to be a problem with the specific script i am trying to run.
I just wrote a simple loop and it stops normally using esc! .
0 Kudos
JoseIgnacio
New Contributor

Hi!

Control+C or control + X should work

0 Kudos