# How to add a .py file in Slicer?

**URL:** <https://discourse.slicer.org/t/how-to-add-a-py-file-in-slicer/1358>\
**Category:** Support\
**Created:** [November 2, 2017, 11:45pm UTC](https://discourse.slicer.org/t/how-to-add-a-py-file-in-slicer/1358 "2017-11-02T23:45:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shrimanti](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@shrimanti](https://discourse.slicer.org/u/shrimanti)\
**Post date:** [November 2, 2017, 11:45pm UTC](https://discourse.slicer.org/t/how-to-add-a-py-file-in-slicer/1358/1 "2017-11-02T23:45:42Z")

</div>

Hello,

I wanted to calculate the angle between two ruler lines in Slicer. I found the [AngleMeasurement.py](http://AngleMeasurement.py) file.  
But where should I put this file and I wanted to know the steps how to add that file in Slicer and how to measure the angle?

---

<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:** [November 3, 2017, 1:10am UTC](https://discourse.slicer.org/t/how-to-add-a-py-file-in-slicer/1358/2 "2017-11-03T01:10:20Z")

</div>

2 posts were merged into an existing topic: [How to measure the angle?](https://discourse.slicer.org/t/how-to-measure-the-angle/1031)

---

<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:** [November 3, 2017, 1:10am UTC](https://discourse.slicer.org/t/how-to-add-a-py-file-in-slicer/1358/3 "2017-11-03T01:10:21Z")

</div>


