I have a PyQT KDE application and I need to generate some files(with pyuic
and pyrcc
commands) and copy some files(.desktop) to some places(ie /usr/share/applications/kde4/). What are preferred ways to do this?
Is using shutil.copy()
and os.command()
(or subprocess.Popen()
) good way to copy operations and commands? Or are there better ways to do this in setup.py with disutils?