1
0
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:
Virgil Dupras
2010-10-04 15:42:38 +02:00
parent d2f968def7
commit 31555aa473
5 changed files with 42 additions and 39 deletions

16
run_template_qt.py Normal file
View 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())