# Modify Python Script Text

**URL:** <https://discourse.mcneel.com/t/modify-python-script-text/174692>\
**Category:** Grasshopper\
**Tags:** windows, python, ironpython\
**Created:** [February 1, 2024, 3:01pm UTC](https://discourse.mcneel.com/t/modify-python-script-text/174692 "2024-02-01T15:01:18Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Measure](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/measure/32/651816_2.png) [@Measure](https://discourse.mcneel.com/u/Measure)\
**Post date:** [February 2, 2024, 2:34pm UTC](https://discourse.mcneel.com/t/modify-python-script-text/174692/7 "2024-02-02T14:34:26Z")

</div>

I’m using the IronPython component (`IronPython2Component`). It doesn’t have a `Code` property, but it does have a `Text` property that gives read access to the script text.

---

_[View the full topic](https://discourse.mcneel.com/t/modify-python-script-text/174692)._
