Explorar o código

빼먹은 코드 추가

잉여개발기 (SPDV) %!s(int64=2) %!d(string=hai) anos
pai
achega
db271f6a5b
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      route/tool/func.py

+ 3 - 0
route/tool/func.py

@@ -701,6 +701,9 @@ def set_init_always(conn, ver_num):
             if for_a != exe_type:
                 os.remove(os.path.join(exe_path, for_a))
 
+        if platform.system() == 'Linux':
+            os.system('chmod +x ./route_go/bin/' + exe_type)
+
 def set_init(conn):
     curs = conn.cursor()