0

I am trying to import a function from the directory in the same project. how can i do that ?

.|____project/
 |     |_____src/
 |     |        |____myproject/
 |     |        |     | __init__.py
 |     |        |     |____funtion.py
 |     |_____test/
 |     |        |___ testmyproject.py
 |     |        |____data/
 |     |                 |___testdata

How can i import the the file function.py or the functions in the function.py file in my test/testmyproject.py to test the fucntions? i am not able to import the module from function.py

Anatolii
  • 13,298
  • 3
  • 33
  • 63
JRD
  • 799
  • 6
  • 12

0 Answers0