Browse Source

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

SongZihuan 3 years ago
parent
commit
e21c3784bc
1 changed files with 1 additions and 0 deletions
  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()