I have two python files :
DatabaseFunctions.py and tele_bot.py .
On windows side I'm importing DatabaseFunctions.py module inside tele_bot.py and everything is fine .
import code line : from .DatabaseFunctions import *
when I upload my files in ubuntu server side , I'm getting this error :
SystemError: Parent module '' not loaded, cannot perform relative import
I also tried from appname.DatabaseFunction import * then I got this :
No module named 'appname'
Here is my directory structure :
firstBot/
__init__.py
DatabaseFunctions.py
tele_bot.py
anyone can help ?