Skip to content

What is cmd = 'find ./data -type f -exec sed -i \'\' \'s/TAPAS_ROOT_ABSOLUTE_PATH/%s/g\' {} +' % cwd.replace(os.path.sep, '\/') for? #40

Answered by yangky11
brando90 asked this question in Q&A
Discussion options

You must be logged in to vote

The proofs extracted from Coq projects contain hard-coded paths to the current directory. In the pre-extracted proofs, I replaced the path with TAPAS_ROOT_ABSOLUTE_PATH. So unzip_data.py restores it using the user's current path.

Indeed, the current codebase for CoqGym still has a lot of room to improve its accessibility. But unfortunately, I don't have enough bandwidth to do a major overhaul. You're welcome to submit pull requests though. Also feel free to post in Discussions so that I may take a look whenever I get a chance. I just reformatted all Python code using black and added a comment about contributing in the README file.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yangky11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants