Browse Source

Merge pull request #513 from DragonAura/dev

fix: 🐛 fix python compile fail
tags/v0.1.0
Changli Tang GitHub 2 years ago
parent
commit
3baedc221e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      dependency/shell/compile.sh

+ 2
- 1
dependency/shell/compile.sh View File

@@ -16,12 +16,13 @@ do
elif [ -f "${bind}/player${i}.py" ]; then
pushd ../python
cp -f $bind/player$i.py ./PyAPI/AI.py
python3 -m compileall ./PyAPI
python3 -m compileall ./PyAPI >compile_log$i.txt 2>&1
if [ ! -f ./PyAPI/__pycache__/AI.cpython-39.pyc ]; then
flag=0
else
rm -rf ./PyAPI/__pycache__/AI.cpython-39.pyc
fi
mv ./compile_log$i.txt $bind/compile_log$i.txt
popd
fi
let "i++"


Loading…
Cancel
Save