# Revit 2022 & IronPython folder

**URL:** <https://forum.dynamobim.com/t/revit-2022-ironpython-folder/82645>\
**Category:** Developers\
**Tags:** python, dynamo\
**Created:** [November 1, 2022, 10:47am UTC](https://forum.dynamobim.com/t/revit-2022-ironpython-folder/82645 "2022-11-01T10:47:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![salvatoredragotta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/salvatoredragotta/32/10078_2.png) [@salvatoredragotta](https://forum.dynamobim.com/u/salvatoredragotta)\
**Post date:** [November 1, 2022, 10:47am UTC](https://forum.dynamobim.com/t/revit-2022-ironpython-folder/82645/1 "2022-11-01T10:47:05Z")

</div>

Hi all,

Does anyone know where the IronPython folder is in Revit 2022.1.3 / Dynamo 2,12 ?

> <https://github.com/DynamoDS/Dynamo/issues/8561#issuecomment-526798714>
>
> Hi All,
> 
> I started a thread on the Discourse forum regarding some concerns I h…ave about the Dynamo IronPython distribution method:
> 
> https://forum.dynamobim.com/t/distribute-revit-dynamo-with-the-iron-python-standard-library
> 
> Basically boiling down to:
> 
> 1) The potential breakage of IronPython within other applications, due to the Dynamo system-wide install method of IronPython 2.7.
> 
> 2) Why the path to the IronPython Standard Library \_should\_ be hard-coded within the available scripting environments (the Dynamo Python node specifically).
> 
> Best,
> 
> Anders (entirely new user that do not mean to pop in and make a fuss)

> [@Version of my IRONPYTHON..?](https://forum.dynamobim.com/t/version-of-my-ironpython/71784/14):
>
> An example with sys module import clr import sys pyEngineName = sys.implementation.name if pyEngineName == "ironpython": OUT = "PyEngine:{} \nIpyVersion:{}".format(pyEngineName, sys.version) else: OUT = "PyEngine:{} \nPyVersion:{}\nPython.Net bridge Version:{}".format(pyEngineName, \ sys.version, \ clr.\_\_version\_\_)

---

<div class="post-metadata">

**Author:** ![Brendan\_Cassidy](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/brendan_cassidy/32/7685_2.png) [@Brendan\_Cassidy](https://forum.dynamobim.com/u/Brendan_Cassidy)\
**Post date:** [November 1, 2022, 11:01am UTC](https://forum.dynamobim.com/t/revit-2022-ironpython-folder/82645/2 "2022-11-01T11:01:45Z")

</div>

Since Revit 2020 Dynamo for Revit is installed within the addins folder which can be found here

C:\Program Files\Autodesk\Revit 2022\AddIns\DynamoForRevit\IronPython.StdLib.2.7.9

Change the revit version for either 2020, 2021 or 2022.

Do note that for revit 2023 on wards you have to get the IronPython package and is not installed in a similar version as the above folder!!

---

<div class="post-metadata">

**Author:** ![salvatoredragotta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/salvatoredragotta/32/10078_2.png) [@salvatoredragotta](https://forum.dynamobim.com/u/salvatoredragotta)\
**Post date:** [November 1, 2022, 11:17am UTC](https://forum.dynamobim.com/t/revit-2022-ironpython-folder/82645/3 "2022-11-01T11:17:28Z")

</div>

@Brendan_Cassidy Thanks a lot! 😀

so no need to add this code anymore ? Do you know how to import sqlite ?

```auto
import sys
pyt_path = r'C:\Program Files (x86)\IronPython 2.7\Lib'
sys.path.append(pyt_path)

```

I guess the IronPython Console has to be manually installed

---

<div class="post-metadata">

**Author:** ![Brendan\_Cassidy](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/brendan_cassidy/32/7685_2.png) [@Brendan\_Cassidy](https://forum.dynamobim.com/u/Brendan_Cassidy)\
**Post date:** [November 2, 2022, 8:47am UTC](https://forum.dynamobim.com/t/revit-2022-ironpython-folder/82645/4 "2022-11-02T08:47:08Z")

</div>

For sqlite you should just need to do the below

import sqlite3

---

<div class="post-metadata">

**Author:** ![salvatoredragotta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/salvatoredragotta/32/10078_2.png) [@salvatoredragotta](https://forum.dynamobim.com/u/salvatoredragotta)\
**Post date:** [November 2, 2022, 9:28am UTC](https://forum.dynamobim.com/t/revit-2022-ironpython-folder/82645/5 "2022-11-02T09:28:28Z")

</div>

yes I tried that

```auto
Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed. 
Traceback (most recent call last):
  File "<string>", line 31, in <module>
  File "C:\Program Files\Autodesk\Revit 2022\AddIns\DynamoForRevit\IronPython.StdLib.2.7.9\sqlite3\ __init__.py", line 32, in <module>
  File "C:\Program Files\Autodesk\Revit 2022\AddIns\DynamoForRevit\IronPython.StdLib.2.7.9\sqlite3\dbapi2.py", line 28, in <module>
ImportError: No module named _sqlite3

```
