We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d08dbe commit fcbb1a2Copy full SHA for fcbb1a2
src/diffpy/cmi/__init__.py
@@ -31,7 +31,10 @@ def get_package_dir(root_path=None):
31
context manager
32
A context manager that yields a pathlib.Path to the package directory.
33
"""
34
- resource = files(__name__)
+ if root_path is None:
35
+ resource = files(__name__)
36
+ else:
37
+ resource = root_path
38
return as_file(resource)
39
40
0 commit comments