0

First off I want to apologize if this question has been posted numerous times, but the solutions I have been reading such as (python relative import) haven't really answered the question I am about to ask (or rather I don't understand how to apply this answer to my scenario). So basically I have two folders: AR and CL. In AR there is a file named "Around.py" and in CL there is a file called "Clear.py". How would I go about importing "Around.py" into "Clear.py".

enter image description here

NOTE: Assume I cannot use absolute paths as a solution (so please don't use them in the solution), but relative path importing is OK.

Any help would be greatly appreciated!

J.C
  • 105
  • 1
  • 1
  • 9

1 Answers1

0

If the AR and CL folders are in the same folder, then the below should work for you from Clear.py:

from ..AR import Around
Shashank Verma
  • 369
  • 1
  • 14