mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-02 03:48:03 +03:00
@@ -16,6 +16,7 @@
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
from Furious.Utility.Constants import PLATFORM
|
||||
from Furious.Utility.Utility import runCommand
|
||||
|
||||
import logging
|
||||
import subprocess
|
||||
@@ -23,10 +24,6 @@ import subprocess
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def runCommand(*args, **kwargs):
|
||||
return subprocess.run(*args, **kwargs)
|
||||
|
||||
|
||||
def linuxProxyConfig(proxy_args, arg0, arg1):
|
||||
runCommand(
|
||||
[
|
||||
@@ -51,6 +48,7 @@ def darwinProxyConfig(operation, *args):
|
||||
check=True,
|
||||
)
|
||||
|
||||
# Replace with command.stdout.decode('utf-8', 'replace')...?
|
||||
service = list(filter(lambda x: x != '', command.stdout.decode().split('\n')))
|
||||
|
||||
return service[1:]
|
||||
|
||||
Reference in New Issue
Block a user