mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-03-26 08:31:38 +00:00
Rather than having a run.py file that checks build config at runtime, this file is generated at build time, making it easier to package it.
This commit is contained in:
16
run_template_qt.py
Normal file
16
run_template_qt.py
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
import os
|
||||
import os.path as op
|
||||
import runpy
|
||||
|
||||
def main():
|
||||
scriptpath = op.abspath(__file__)
|
||||
scriptfolder = op.dirname(scriptpath)
|
||||
sys.path.insert(0, scriptfolder)
|
||||
del sys.argv[0]
|
||||
runpy.run_module('qt.{edition}.start', run_name="__main__")
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
Reference in New Issue
Block a user