Skip to content

src: handle -python with no args#2389

Merged
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
proppy:fix-python-noargs
Oct 20, 2022
Merged

src: handle -python with no args#2389
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
proppy:fix-python-noargs

Conversation

@proppy
Copy link
Copy Markdown
Contributor

@proppy proppy commented Oct 20, 2022

Related: #2375

As commented in #2375 (comment), openroad -python now prints a warning when called without argument.

This PR makes sure that we don't attempt to open a file if no arguments is provided after -python.

Note: I also noticed that the findCmd* helpers in sta don't seems to discard singular argument (i.e: don't replace -python with \0 if it's the last argument), see The-OpenROAD-Project/OpenSTA#126.

Signed-off-by: Johan Euphrosine <proppy@google.com>
@proppy proppy force-pushed the fix-python-noargs branch from 34901e8 to 5f11ae6 Compare October 20, 2022 05:56
@maliberty maliberty merged commit 2b0bf46 into The-OpenROAD-Project:master Oct 20, 2022
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

Successfully merging this pull request may close these issues.

2 participants