0

Whenever I need to use a file in Vscode whether if it is imported or in the CWD Vscode can not find it unless I enter the file path fully, is there anything that help to use files in current working directory. or when I import something like QIcon I have the same problem.

from PyQt6.QtWidgets import QApplication, QWidget
from PyQt6.QtGui import QIcon
import sys



class Window(QWidget):
    def __init__(self):
        super().__init__()
        self.setWindowTitle('PyQT6  Window')
        self.setWindowIcon("qt.png")  # this is not working I need to set a path
Jamiu S.
  • 5,257
  • 5
  • 12
  • 34
X ZEX
  • 1
  • 1

0 Answers0