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

Relative Path Breaks Script #1

Closed
Udit8348 opened this issue Oct 12, 2020 · 2 comments
Closed

Relative Path Breaks Script #1

Udit8348 opened this issue Oct 12, 2020 · 2 comments

Comments

@Udit8348
Copy link
Owner

Describe the bug
If prosToMinted.py is not run from the project's root directory, then it will cause issues with finding header and source files.

To Reproduce
Steps to reproduce the behavior:

  1. Go to scripts/
  2. run python3
  3. See error

Expected behavior
The script should correctly execute from anywhere in the project directory.

Desktop (please complete the following information):

  • OS: Windows 10
  • Python 3.7.9

Additional information
Short Term Solution 🚧: always run the script from the root directory
Long Term Solution 🛠: implement python package pathlib for os specific paths & implement absolute paths. See More

@Udit8348
Copy link
Owner Author

Learning how to use pathlib here

@Udit8348 Udit8348 pinned this issue Oct 24, 2020
@Udit8348
Copy link
Owner Author

Long Term Solution Implemented! Now pyToMinted uses pathlib for cross platform compatibility

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

1 participant