How to use function of one doctype into another doctype

Hello ,

How to use function of one doctype into another doctype??
e.g. I have created two module “sample1” & “sample2” and in sample1 i have created one function named “my_function” in sample1.py and want to use it in sample2.py.

can anyone assist me for the same?

Regards,
Nishant

You can use standard python import for module.

Thnx @rmehta,
it’s working. :smile: