Explorar el Código

fix: shell文件创建后写入执行权限

SongZihuan hace 3 años
padre
commit
e21c3784bc
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      setup.py

+ 1 - 0
setup.py

@@ -177,6 +177,7 @@ def write_shell():
         print(f"创建shell脚本 {bat}")
         with open(bat, "w") as f:
             f.write(f"{python} {main} --program {i} --run release")
+        os.system(f"chmod a+x {bat}")
 
 
 install_base()