I have 3 files inside the same folder:
- qrcodeTest.py
- Data.py
- Tray.py
They're all under the folder called "Project". Only Tray.py
has a class called "Tray" but the other 2 files do not contain classes. I am trying to run qrcodeTest.py
but I need to import Data and Tray (this previously worked when I had all these files under the same folder and ran it in Pycharm).
Inside my qrcodeTest.py
file, I used to have the following import statements import Data
and import Tray
but now these lead to an import error. How do I properly import the Data and Tray files inside qrcodeTest
?
My files Data
and Tray
do not contain functions.
[Edit 1] I have included a screenshot of the error shown in VSCode