-
Notifications
You must be signed in to change notification settings - Fork 38
cookiecutter: modified files pt2 #154
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
Conversation
sbillinge
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please see inline comments.
|
|
||
| control = PDFGuiControl() | ||
| control.load("../../tests/testdata/ni.ddp") | ||
| control.load("src/diffpy/pdfgui/tests/testdata/ni.ddp") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you test this? It is unlikely to work because this is a relative file-path.
| from importlib import resources | ||
|
|
||
| from pkg_resources import Requirement, resource_filename | ||
| from pkg_resources import Requirement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think pkg_resources is deprecated so we want to get rid of this. I would put pkg_resources fixes on a separate PR tbh.
|
|
||
| # Resolve APPDATADIR base path to application data files. | ||
| _mydir = os.path.abspath(resource_filename(__name__, "")) | ||
| _mydir = os.path.abspath(str(resources.files(__name__).joinpath(""))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whenever we touch lines of code that do path munging, switch the code to using pathlib.Path. Then do it for the full module. This also on a separate PR because it will be harder to merge.
@sbillinge second half of commits for modified files