use the shutil module (the pythonic way)
Closed this issue · 1 comments
ptrebert commented
Solving a simple file copy via a subprocess call is quite "costly", although in this particular instance, that is negligible. Python offers direct calls for file copying etc via the shutil
module, which is the better way of doing that.
cubi-tools/cubi-tools/update_metadata.py
Lines 361 to 365 in 33c72d2
svenwillger commented
cp
has been replace with a command via a shutil
call.