# Adding Custom Python Packages

**URL:** <https://discuss.saleae.com/t/adding-custom-python-packages/2057>\
**Category:** Extensions\
**Created:** [January 19, 2023, 11:48pm UTC](https://discuss.saleae.com/t/adding-custom-python-packages/2057 "2023-01-19T23:48:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![timreyes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/timreyes/32/108_2.png) [@timreyes](https://discuss.saleae.com/u/timreyes)\
**Post date:** [January 20, 2023, 11:30pm UTC](https://discuss.saleae.com/t/adding-custom-python-packages/2057/2 "2023-01-20T23:30:41Z")

</div>

@fkbokovi Thanks for writing in, and sorry for the trouble with that. Can you confirm if you’ve tried the solution that Mark shared below?

> [@Import other libraries in HLA](https://discuss.saleae.com/t/import-other-libraries-in-hla/1486):
>
> Hi, I am trying to import some libraries in the HLA. Easily accomplished, or so I thought, by Putting a lib folder next to my script pip install -r requirements.txt --target lib sys.path.append(str(Path(\_\_file\_\_).parent.absolute() / 'lib')) And it is in fact easily accomplished. But the trouble apparently starts when the module I import wants to import something else. It seems all second level imports fail. HighLevelAnalyzer.py", line 21, in \<module\> from construct import Struct File…

---

_[View the full topic](https://discuss.saleae.com/t/adding-custom-python-packages/2057)._
