'''import section''' import sqlite3 import sys sys.path.append("E:\PyCharm\Projects\data1.0\main_window") from main_window.mi import path def main(): ''' there is usage of attr''' connection=sqlite3.connect(path) first_cursor=connection.cursor()