3

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?

Sathyajith Bhat
  • 21,321
  • 22
  • 95
  • 134
sinan
  • 6,809
  • 6
  • 38
  • 67

1 Answers1

1

Judging from this question shutil is the way to go for copying files/directories (copyfile/copytree/...)

As for installing extra files with distutils, see the data_files and package_data options.

Community
  • 1
  • 1
dgorissen
  • 6,207
  • 3
  • 43
  • 52