瀏覽代碼

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

SongZihuan 3 年之前
父節點
當前提交
e21c3784bc
共有 1 個文件被更改,包括 1 次插入0 次删除
  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()