From a273eb3a7a57fdac0e2f4a1add36bef8fb373909 Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Wed, 13 May 2020 18:44:27 +0300 Subject: [PATCH] Imported check_call, getuid --- Defs/ImportManager/unsorted_will_be_replaced.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Defs/ImportManager/unsorted_will_be_replaced.py b/Defs/ImportManager/unsorted_will_be_replaced.py index 42103aa..e200743 100644 --- a/Defs/ImportManager/unsorted_will_be_replaced.py +++ b/Defs/ImportManager/unsorted_will_be_replaced.py @@ -6,12 +6,14 @@ # -from subprocess import call as run_command,Popen as run_background_command, check_output, CalledProcessError, DEVNULL, PIPE +from subprocess import call as run_command, check_call as try_to_run_command ,Popen as run_background_command, check_output, CalledProcessError, DEVNULL, PIPE from distutils.dir_util import copy_tree as webpage_set from time import sleep as wait -from os import path, system, chmod, stat, mkdir, remove, chdir, replace +from os import path, system, chmod, stat, mkdir, remove, chdir, replace, getuid from shutil import rmtree, copyfile from pathlib import Path as pathlib_Path from pyngrok import ngrok import re as regular_expression -import getpass, base64, socket, requests \ No newline at end of file +import getpass, base64, socket, requests +from platform import system as platform_os +import requests \ No newline at end of file