20240402150100
This commit is contained in:
parent
9e9add9e4a
commit
d0dea4889e
5
main.py
5
main.py
|
@ -1,6 +1,5 @@
|
|||
import os
|
||||
import sys
|
||||
import site
|
||||
import time
|
||||
import logging
|
||||
import pyaudio
|
||||
|
@ -323,8 +322,8 @@ class MainWindow(QWidget):
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
for i in site.getsitepackages():
|
||||
i.endswith('site-packages') and QCoreApplication.addLibraryPath(os.path.abspath(os.path.join(i, 'PyQt5/Qt5/plugins')))
|
||||
if (os.path.basename(__file__).lower().endswith('.int')) == 1:
|
||||
QCoreApplication.addLibraryPath(os.path.abspath(os.path.join(os.path.dirname(__file__), 'site-packages/PyQt5/Qt5/plugins')))
|
||||
app = QApplication(sys.argv)
|
||||
window_main = MainWindow()
|
||||
player.callback_play = window_main.event_play
|
||||
|
|
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
Loading…
Reference in New Issue