mirror of
https://github.com/fergalmoran/picard.git
synced 2026-01-02 22:53:58 +00:00
19 lines
571 B
Python
Executable File
19 lines
571 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import os.path
|
|
from distutils import log
|
|
from distutils.dep_util import newer
|
|
|
|
def main():
|
|
scriptdir = os.path.dirname(os.path.abspath(__file__))
|
|
topdir = os.path.abspath(os.path.join(scriptdir, ".."))
|
|
pyfile = os.path.join(topdir, "picard", "resources.py")
|
|
qrcfile = os.path.join(topdir, "resources", "picard.qrc")
|
|
if newer(qrcfile, pyfile):
|
|
log.info("compiling %s -> %s", qrcfile, pyfile)
|
|
os.system("pyrcc4 \"%s\" -o \"%s\"" % (qrcfile, pyfile))
|
|
|
|
if __name__ == "__main__":
|
|
log.set_verbosity(1)
|
|
main()
|