Remove debug script
This commit is contained in:
parent
2a6457a448
commit
d2ea58829d
1 changed files with 0 additions and 18 deletions
18
Debug.py
18
Debug.py
|
@ -1,18 +0,0 @@
|
|||
#!/usr/bin/python
|
||||
import os,subprocess
|
||||
|
||||
# Jump to Src
|
||||
os.chdir("src")
|
||||
|
||||
# Create Qrc file
|
||||
listrc = os.listdir('UI')
|
||||
listrc.remove('res.qrc')
|
||||
f = open('UI/res.qrc', 'w')
|
||||
f.write("""<RCC><qresource prefix="/">""")
|
||||
for i in listrc:
|
||||
f.write(f"<file>{i}</file>")
|
||||
f.write("""</qresource></RCC>""")
|
||||
f.close()
|
||||
|
||||
# Compile Qrc & Create onefile script & run it
|
||||
subprocess.run("""rcc -g python UI/res.qrc -o Res.py && sed -i 's/PySide2/PyQt6/g' Res.py && echo "#!/usr/bin/python" > Welcome && cat Res.py >> Welcome && cat Welcome.py >> Welcome && chmod +x Welcome && ./Welcome && rm Welcome""",shell=True)
|
Loading…
Add table
Reference in a new issue