Skip to content

Commit 8951d92

Browse files
committed
return comments
1 parent 92eb83b commit 8951d92

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mytonctrl/mytonctrl.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,20 +190,24 @@ def check_installer_user():
190190

191191
if username != actual_user:
192192
raise Exception(f'mytonctrl was installed by another user. Probably you need to launch mtc with `{actual_user}` user.')
193+
#end define
193194

194195

195196
def PreUp(local, ton):
196197
CheckMytonctrlUpdate(local)
197198
check_installer_user()
198199
check_vport(local, ton)
199200
# CheckTonUpdate()
201+
#end define
202+
200203

201204
def Installer(args):
202205
# args = ["python3", "/usr/src/mytonctrl/mytoninstaller.py"]
203206
args = ["python3", "-m", "mytoninstaller"]
204207
subprocess.run(args)
205208
#end define
206209

210+
207211
def GetAuthorRepoBranchFromArgs(args):
208212
data = dict()
209213
arg1 = GetItemFromList(args, 0)
@@ -222,6 +226,7 @@ def GetAuthorRepoBranchFromArgs(args):
222226
if arg2:
223227
data["branch"] = arg2
224228
return data
229+
#end define
225230

226231

227232
def check_vport(local, ton):
@@ -236,6 +241,7 @@ def check_vport(local, ton):
236241
result = client_socket.connect_ex((ip, addr.port))
237242
if result != 0:
238243
color_print(local.translate("vport_error"))
244+
#end define
239245

240246

241247
def fix_git_config(git_path: str):

0 commit comments

Comments
 (0)