lib changed to headers

This commit is contained in:
C
2023-02-09 18:40:11 +05:00
parent 036d91a630
commit 895e3b6baa
4 changed files with 14 additions and 5 deletions
+3 -3
View File
@@ -11,10 +11,10 @@ titles_path = '/session_server_config/titles.json'
# nginx config
server_domain = 'a1.test.sess.graff.tech'
session_server_ip = "192.168.1.115"
server_domain = 'a2.sess.graff.tech'
session_server_ip = "192.168.0.10"
server_postfix = "s1"
session_server_port = 3005
session_begin_port = 14000
session_limit = 7
session_limit = 4
+9
View File
@@ -0,0 +1,9 @@
import subprocess
def run_command(cmd, directory):
command = subprocess.run(["powershell", "-Command", cmd], cwd=directory, shell=True, check=True)
return command
def run_command_no_dir(cmd):
command = subprocess.run(["powershell", "-Command", cmd], shell=True, check=True)
return command
+1 -1
View File
@@ -1,5 +1,5 @@
import config
import lib.powershell as powershell
import headers.powershell as powershell
import shutil
import os
+1 -1
View File
@@ -1,5 +1,5 @@
import config
import lib.powershell as powershell
import headers.powershell as powershell
import os
deploy_path = config.deploy_path