How do i run python scripts which includes imports from other .py files in the same directory.

Hi,

I have a python script which imports other external python modules. i have copied all the .py files to a directory in the remote host. But, when i try to run the script file, it gives me an error “ImportError: No module named xyz”.
I am executing the abc.py file via the scripy module and inside the abc.py, i am importing the xyz.py python file.

Hi,

I have a python script which imports other external python modules. i have copied all the .py files to a directory in the remote host. But, when i try to run the script file, it gives me an error "ImportError: No module named xyz".
I am executing the abc.py file via the scripy module and inside the abc.py, i am importing the xyz.py python file.

I think this is probably a better inquiry for the Ansible users
list[0] as this mailing list is meant for development discussions of
Ansible itself.

Thank you and happy automating!
-AdamM

[0] - https://groups.google.com/forum/#!forum/ansible-project