1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-05 17:05:03 -05:00

Merge pull request #1262 from eli-jordan/develop

use subprocess instead of os.system
This commit is contained in:
Alexandre Beloin 2015-02-15 18:17:54 -05:00
commit 23f3185e61

View File

@ -43,6 +43,8 @@ import requests
import requests.exceptions
import xmltodict
import subprocess
from sickbeard.exceptions import MultipleShowObjectsException, ex
from sickbeard import logger, classes
from sickbeard.common import USER_AGENT, mediaExtensions, subtitleExtensions
@ -343,7 +345,7 @@ def listMediaFiles(path):
def copyFile(srcFile, destFile):
if isPosix():
os.system('cp "%s" "%s"' % (srcFile, destFile))
subprocess.call(['cp', srcFile, destFile])
else:
ek.ek(shutil.copyfile, srcFile, destFile)