# \#savefile

**URL:** https://discourse.mcneel.com/tag/savefile/985.md

[Latest](https://discourse.mcneel.com/latest.md) · [Categories](https://discourse.mcneel.com/categories.md) · [Tags](https://discourse.mcneel.com/tags.md)

---

## [How to save .gh file directly from python component?](https://discourse.mcneel.com/t/how-to-save-gh-file-directly-from-python-component/83150)

<div class="topic-metadata">

**Author:** [@Ambrosinus](https://discourse.mcneel.com/u/Ambrosinus)\
**Replies:** 5\
**Last updated:** [May 14, 2019, 12:28pm UTC](https://discourse.mcneel.com/t/how-to-save-gh-file-directly-from-python-component/83150 "2019-05-14T12:28:14Z")

</div>

Hi All, I wonder if it’s possible to save a .gh file (with custom filename in a pre-selected dir) directly from gh python component. Thank you in advance for all your tips.
