소스 검색

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()