asp.py: abs_control_files
shouldn't ask for write rights (#49591)
This commit is contained in:
parent
26f7b2c066
commit
a8584d5eb4
@ -1209,7 +1209,7 @@ def solve(self, setup, specs, reuse=None, output=None, control=None, allow_depre
|
|||||||
full_path = lambda x: os.path.join(parent_dir, x)
|
full_path = lambda x: os.path.join(parent_dir, x)
|
||||||
abs_control_files = [full_path(x) for x in control_files]
|
abs_control_files = [full_path(x) for x in control_files]
|
||||||
for ctrl_file in abs_control_files:
|
for ctrl_file in abs_control_files:
|
||||||
with open(ctrl_file, "r+", encoding="utf-8") as f:
|
with open(ctrl_file, "r", encoding="utf-8") as f:
|
||||||
problem_repr += "\n" + f.read()
|
problem_repr += "\n" + f.read()
|
||||||
|
|
||||||
result = None
|
result = None
|
||||||
|
Loading…
Reference in New Issue
Block a user