# Python script freezing Grasshopper after run

**URL:** <https://discourse.mcneel.com/t/python-script-freezing-grasshopper-after-run/173365>\
**Category:** Grasshopper\
**Tags:** windows, ghpython, python, grasshopperrhino\
**Created:** [January 15, 2024, 1:48pm UTC](https://discourse.mcneel.com/t/python-script-freezing-grasshopper-after-run/173365 "2024-01-15T13:48:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philippe\_HAMON](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/philippe_hamon/32/766320_2.png) [@Philippe\_HAMON](https://discourse.mcneel.com/u/Philippe_HAMON)\
**Post date:** [January 15, 2024, 1:48pm UTC](https://discourse.mcneel.com/t/python-script-freezing-grasshopper-after-run/173365/1 "2024-01-15T13:48:52Z")

</div>

Hi there,

I just made a quick python script to batch import dxf files in Rhino.

It works, but then GH freezes after it runs, I can zoom in and out but nothing else.  
Any ideas on what I’m doing wrong?

RH7SR36 Windows10

Here is the gh file:  
[insertdxf.gh](https://discourse.mcneel.com/uploads/short-url/6boaJOevdhoRt2UNN8jqqMHUj31.gh) (8.0 KB)

---

<div class="post-metadata">

**Author:** ![Philippe\_HAMON](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/philippe_hamon/32/766320_2.png) [@Philippe\_HAMON](https://discourse.mcneel.com/u/Philippe_HAMON)\
**Post date:** [January 15, 2024, 5:34pm UTC](https://discourse.mcneel.com/t/python-script-freezing-grasshopper-after-run/173365/2 "2024-01-15T17:34:31Z")

</div>

With the “True-only” button from Pancake it works
