How to import python files present in a folder(within a container) in another python file?

Anonymous
2023-05-30T15:52:02.78+00:00

I have a container named "input".

Inside this container, I have a python file called "main.py" and a folder "ABC".

Inside the folder "ABC", I have another python file called "xyz.py".

I want to import xyz.py in main.py.

Is this possible?

Azure Files
Azure Files

An Azure service that offers file shares in the cloud.

Azure Storage
Azure Storage

Globally unique resources that provide access to data management services and serve as the parent namespace for the services.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.