Asked • 03/27/19

Importing files from different folder?

I have the following folder structure.`application/app/folder/file.py`and I want to import some functions from ***file.py*** in another Python file which resides in`application/app2/some_folder/some_file.py`I've tried`from application.app.folder.file import func_name`and some other various attempts but so far I couldn't manage to import properly. How can I do this?

1 Expert Answer

By:

Jason H. answered • 03/30/19

Tutor
New to Wyzant

Experienced professional working at big tech company

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.