# How to hide the code of the script module?

**URL:** <https://discourse.slicer.org/t/how-to-hide-the-code-of-the-script-module/26135>\
**Category:** Development\
**Tags:** python, scripted\
**Created:** [November 8, 2022, 1:20pm UTC](https://discourse.slicer.org/t/how-to-hide-the-code-of-the-script-module/26135 "2022-11-08T13:20:00Z")\
**Posts on this page:** 1\
**Showing post:** 26

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [March 20, 2024, 6:54pm UTC](https://discourse.slicer.org/t/how-to-hide-the-code-of-the-script-module/26135/26 "2024-03-20T18:54:59Z")

</div>

Corresponding approach was revisited by instead introduce the option `CTK_COMPILE_PYTHON_SCRIPT_KEEP_ONLY_PYC` to support removing `*.py` script once the corresponding `*.pyc` file has been generated in the destination directory.

See [https://github.com/commontk/CTK/pull/1192](https://github.com/commontk/CTK/pull/1192)

@MJamal At your convenience, consider reviewing and testing the proposed changes 🙏

---

_[View the full topic](https://discourse.slicer.org/t/how-to-hide-the-code-of-the-script-module/26135)._
