mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-25 01:34:38 +01:00
Don't use shell=True in dev console
This commit is contained in:
parent
154b550e0e
commit
c947004ec9
@ -55,7 +55,7 @@ def print_env_info():
|
||||
which_cmd = "where" if platform.system() == "Windows" else "which"
|
||||
|
||||
def run(cmd):
|
||||
with subprocess.Popen(cmd, shell=True) as p:
|
||||
with subprocess.Popen(cmd) as p:
|
||||
p.wait()
|
||||
|
||||
run([which_cmd, "git"])
|
||||
@ -76,9 +76,9 @@ def print_env_info():
|
||||
|
||||
def open_dev_shell():
|
||||
if platform.system() == "Windows":
|
||||
subprocess.Popen("cmd", shell=True).communicate()
|
||||
subprocess.Popen("cmd").communicate()
|
||||
else:
|
||||
subprocess.Popen("bash", shell=True).communicate()
|
||||
subprocess.Popen("bash").communicate()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user