Skip to content

Commit a84c62a

Browse files
committed
Fix path to x.py in configure.py script
We may see a help message in the end of the output of the ./configure script: $ ./configure configure: processing command line configure: configure: build.configure-args := [] configure: configure: writing `config.toml` in current directory configure: configure: run `python ./src/bootstrap/x.py --help` configure: but the x.py script is actually in the rust root directory and executing of such help string will give us error: $ python ./src/bootstrap/x.py --help python: can't open file './src/bootstrap/x.py': [Errno 2] No such file or directory This patch fixes path to the x.py script in the output of the ./configure
1 parent 13ae187 commit a84c62a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/bootstrap/configure.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -407,11 +407,6 @@ def configure_section(lines, config):
407407
contents = contents.replace("$(CFG_PYTHON)", sys.executable)
408408
f.write(contents)
409409

410-
# Finally, clean up with a bit of a help message
411-
relpath = os.path.dirname(__file__)
412-
if relpath == '':
413-
relpath = '.'
414-
415410
p("")
416-
p("run `python {}/x.py --help`".format(relpath))
411+
p("run `python {}/x.py --help`".format(rust_dir))
417412
p("")

0 commit comments

Comments
 (0)