Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set cwd when running programs #142

Open
simonlindholm opened this issue Nov 1, 2019 · 2 comments
Open

Set cwd when running programs #142

simonlindholm opened this issue Nov 1, 2019 · 2 comments

Comments

@simonlindholm
Copy link
Member

Currently programs are run with the problem directory as cwd; this doesn't match e.g. Kattis.

@austrin
Copy link
Contributor

austrin commented Nov 9, 2019

It's not clear to me what the right choice is here.

The problem format standard does not specify any guarantee on the cwd of executed program and we probably agree that it pretty clearly shouldn't, right?

Of course problemtools could make a different arbitrary choice than the current one.

@simonlindholm
Copy link
Member Author

Yeah, we noticed in a recent contest (https://google19.kattis.com/problems/google19.dictionary) that Kattis's setup is run programs with cwd equal to an empty directory /run, and submitted files accessible from /src, and had to make a clarification about that.

I would definitely prefer if the standard specified directory setup and the cwd, but you're right that there appears to be no clear right choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants