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

Prevent FABulous crash by checking for existing directory in do_place_and_rout_npnr #129

Conversation

IAmMarcelJung
Copy link
Collaborator

This checks if the specified directory exists and therefore prevents the CLI from crashing in if f"{name}.json" in os.listdir(f"{self.projectDir}/{path}"): if the specified directory does not exist.

I don't know why git marks so many lines as changed, since I only added a surrounding if and an additional else. Is this just do to the indention on python or is it my mistake? Sorry if the latter is the case and please tell me how an can correct it in that case.

Copy link
Contributor

@TaoBi22 TaoBi22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! The big diff is nothing to worry about, like you said it's just that the lines inside your new if statement are now indented so Git picks them up as modified.

@IAmMarcelJung
Copy link
Collaborator Author

Okay, thanks for your feedback!

Copy link
Collaborator

@KelvinChung2000 KelvinChung2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good to me.

@KelvinChung2000 KelvinChung2000 merged commit 2b44254 into FPGA-Research:master Nov 10, 2023
2 checks passed
@IAmMarcelJung IAmMarcelJung deleted the feat_check_directory_exists_npnr branch November 10, 2023 16:28
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.

3 participants