Skip to content

Commit 77c9f01

Browse files
committed
Added exec permissions in linux when download
1 parent 9bdbed4 commit 77c9f01

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

arlie/arlie/envs/manage.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ def check_envs():
4040
_download_extract_zip(url, base_dir)
4141
print("..install complete.")
4242

43+
if platform.system() == "Linux":
44+
import stat
4345

44-
if __name__ == "__main__":
45-
check_envs()
46+
for name in base_dir.rglob("*.exe"):
47+
st = os.stat(name)
48+
os.chmod(name, st.st_mode | stat.S_IEXEC)

wave/lunar_lander/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ At least in ArchLinux is necessary to fix Roselyn path:
2424
Use msbuild to build the solution in release:
2525

2626
```bash
27+
nuget restore RLEnvs_Linux.sln
2728
msbuild RLEnvs_Linux.sln /t:Build /p:Configuration=Release
28-
chmod +x Launchers/Linux/bin/x86/Release/*.exe
2929
```
3030

3131
Then copy the contents of `[REPO]/wave/lunar_lander/Launchers/Linux/bin/x86/Release` to `[REPO]/arlie/arlie/envs/lunar_lander/LunarLander`
3232

3333
```bash
3434
cd ../..
35+
mkdir -p ./arlie/arlie/envs/lunar_lander/LunarLander
3536
rm -r ./arlie/arlie/envs/lunar_lander/LunarLander/*
3637
cp -r ./wave/lunar_lander/Launchers/Linux/bin/x86/Release/* ./arlie/arlie/envs/lunar_lander/LunarLander
3738
```

0 commit comments

Comments
 (0)