# Developing python modules that include custom modules

**URL:** <https://forum.ansible.com/t/developing-python-modules-that-include-custom-modules/18119>\
**Category:** Ansible Developer\
**Created:** [April 28, 2015, 11:43pm UTC](https://forum.ansible.com/t/developing-python-modules-that-include-custom-modules/18119 "2015-04-28T23:43:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavel\_Georgiev](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@Pavel\_Georgiev](https://forum.ansible.com/u/Pavel_Georgiev)\
**Post date:** [April 28, 2015, 11:43pm UTC](https://forum.ansible.com/t/developing-python-modules-that-include-custom-modules/18119/1 "2015-04-28T23:43:26Z")

</div>

Hello,

I’m trying to create a python ansible module (using AnsibleModule), but I would like to reuse code that I already have in another python module without copy-pasting it in my ansible module. If I simply ‘import’ my custom python module, the ansible module fails to run as my python module is not available on the remote hosts (and I would like to avoid installing it).

Is there a way to split my ansible module code into several python modules and import them without having to pre-install those python modules on the remote hosts?

Thanks!
