Skip to content

Commit

Permalink
fixes for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ynput committed Sep 12, 2024
1 parent 66c1f4e commit 2417305
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions client/ayon_usd/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,20 @@
from ayon_usd import config, HEADLESS_MODE

if not HEADLESS_MODE:
from qtpy import QtCore, QtGui, QtWidgets
from qtpy import QtWidgets

USD_ADDON_ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
DOWNLOAD_DIR = os.path.join(USD_ADDON_ROOT_DIR, "downloads")
ADDON_DATA_JSON_PATH = os.path.join(DOWNLOAD_DIR, "ayon_usd_addon_info.json")

def info_popup(title:str, message:str):
app = QtWidgets.QApplication()
msg = QtWidgets.QMessageBox()
msg.setWindowTitle(title)
msg.setText(message)
msg.setIcon(QtWidgets.QMessageBox.Information)

msg.setStandardButtons(QtWidgets.QMessageBox.Ok)
msg.setDefaultButton(QtWidgets.QMessageBox.Ok)

response = msg.exec_()


def get_download_dir(create_if_missing=True):
"""Dir path where files are downloaded.
Expand Down

0 comments on commit 2417305

Please sign in to comment.