install.py

changeset 624
d2ff1cb672eb
parent 622
54c2a58acef4
child 625
a2d295ee30ba
equal deleted inserted replaced
623:f6a854d78668 624:d2ff1cb672eb
659 659
660 def compileUiFiles(): 660 def compileUiFiles():
661 """ 661 """
662 Compile the .ui files to Python sources. 662 Compile the .ui files to Python sources.
663 """ 663 """
664 global sourceDir
664 try: 665 try:
665 from PyQt4.uic import compileUiDir 666 from PyQt4.uic import compileUiDir
666 except ImportError: 667 except ImportError:
667 from PyQt4.uic import compileUi 668 from PyQt4.uic import compileUi
668 669
737 @param py_file suggested name for the compile source file (string) 738 @param py_file suggested name for the compile source file (string)
738 @return tuple of directory name (string) and source file name (string) 739 @return tuple of directory name (string) and source file name (string)
739 """ 740 """
740 return py_dir, "Ui_{0}".format(py_file) 741 return py_dir, "Ui_{0}".format(py_file)
741 742
742 compileUiDir("eric", True, pyName) 743 compileUiDir(sourceDir, True, pyName)
743 744
744 def main(argv): 745 def main(argv):
745 """ 746 """
746 The main function of the script. 747 The main function of the script.
747 748

eric ide

mercurial