Skip to content

Commit

Permalink
fix current directory
Browse files Browse the repository at this point in the history
  • Loading branch information
vitiacat committed Jul 29, 2022
1 parent 9584d8d commit 637899f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def open_mod(self, item):
view: QWebEngineView = QWebEngineView()
dialog.findChild(QtWidgets.QGridLayout, 'gridLayout_2').addWidget(view)
view.page().setWebChannel(channel)
view.setUrl(QUrl.fromLocalFile(os.path.join(os.path.dirname(__file__), 'web', 'index.html')))
view.setUrl(QUrl.fromLocalFile(os.path.join(os.getcwd(), 'web', 'index.html')))

def check_url(url: QUrl):
if url.host() == 'modrinth.com':
Expand Down

0 comments on commit 637899f

Please sign in to comment.