I want to import function from bot/main.py
into bybitapi/server.py
. The structure of project looks like this:
So, in server.py
I was trying to do it like this:
from bot.main import notifyuserwithtriggeredalarms
But it doesn't work, it was about bot package doesn't exists
. Also, I was trying to solve this using os
and sys
, I couldn't, so, how can I import function in server.py
though other folder?