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 8a7ad4c commit dda11fdCopy full SHA for dda11fd
src/unitxt/settings_utils.py
@@ -161,8 +161,8 @@ def __getattr__(self, key):
161
constants.metric_file = os.path.join(os.path.dirname(__file__), "metric.py")
162
constants.local_catalog_path = os.path.join(os.path.dirname(__file__), "catalog")
163
unitxt_pkg = importlib.util.find_spec("unitxt")
164
- constants.package_dir = os.path.dirname(unitxt_pkg.origin)
165
if unitxt_pkg and unitxt_pkg.origin:
+ constants.package_dir = os.path.dirname(unitxt_pkg.origin)
166
constants.default_catalog_path = os.path.join(constants.package_dir, "catalog")
167
else:
168
constants.default_catalog_path = constants.local_catalog_path
0 commit comments