mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Merge pull request #1262 from eli-jordan/develop
use subprocess instead of os.system
This commit is contained in:
commit
23f3185e61
@ -43,6 +43,8 @@ import requests
|
|||||||
import requests.exceptions
|
import requests.exceptions
|
||||||
import xmltodict
|
import xmltodict
|
||||||
|
|
||||||
|
import subprocess
|
||||||
|
|
||||||
from sickbeard.exceptions import MultipleShowObjectsException, ex
|
from sickbeard.exceptions import MultipleShowObjectsException, ex
|
||||||
from sickbeard import logger, classes
|
from sickbeard import logger, classes
|
||||||
from sickbeard.common import USER_AGENT, mediaExtensions, subtitleExtensions
|
from sickbeard.common import USER_AGENT, mediaExtensions, subtitleExtensions
|
||||||
@ -343,7 +345,7 @@ def listMediaFiles(path):
|
|||||||
|
|
||||||
def copyFile(srcFile, destFile):
|
def copyFile(srcFile, destFile):
|
||||||
if isPosix():
|
if isPosix():
|
||||||
os.system('cp "%s" "%s"' % (srcFile, destFile))
|
subprocess.call(['cp', srcFile, destFile])
|
||||||
else:
|
else:
|
||||||
ek.ek(shutil.copyfile, srcFile, destFile)
|
ek.ek(shutil.copyfile, srcFile, destFile)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user