Skip to content

Commit 520ab66

Browse files
committed
Fix using pypy3 on Arch Linux
1 parent b98e44b commit 520ab66

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cms/grading/Sandbox.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,10 @@ def __init__(self, file_cacher, name=None, temp_dir=None):
979979
# symlink to one out of many alternatives.
980980
self.maybe_add_mapped_directory("/etc/alternatives")
981981

982+
# On Arch Linux, pypy3 is installed in `/opt` and `/usr/bin/pypy3` is
983+
# just a symlink.
984+
self.maybe_add_mapped_directory("/opt/pypy3")
985+
982986
# Likewise, needed by C# programs. The Mono runtime looks in
983987
# /etc/mono/config to obtain the default DllMap, which includes, in
984988
# particular, the System.Native assembly.

0 commit comments

Comments
 (0)