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

Throwing errors when absolute paths are given as arguments #12

Open
gnana1997 opened this issue Sep 23, 2020 · 0 comments
Open

Throwing errors when absolute paths are given as arguments #12

gnana1997 opened this issue Sep 23, 2020 · 0 comments

Comments

@gnana1997
Copy link

gnana1997 commented Sep 23, 2020

NotImplementedError: Non-relative patterns are unsupported

cmd> metrics -q --format=json "F:/Cohesion_Java.py"
or
cmd> metrics -q --format=json F:/Cohesion_Java.py
or
cmd> metrics -q --format=json F:\Cohesion_Java.py
or
cmd> metrics -q --format=json "F:\Cohesion_Java.py"

Traceback (most recent call last):
  File "c:\users\hp\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\hp\anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\hp\Anaconda3\Scripts\metrics.exe\__main__.py", line 7, in <module>
  File "c:\users\hp\anaconda3\lib\site-packages\metrics\metrics.py", line 47, in main
    file_metrics = process_file_metrics(context, file_processors)
  File "c:\users\hp\anaconda3\lib\site-packages\metrics\metrics_utils.py", line 129, in process_file_metrics
    for in_file, key in in_files:
  File "c:\users\hp\anaconda3\lib\site-packages\metrics\metrics_utils.py", line 76, in glob_files
    matches = list(Path(root_dir).glob(pattern))
  File "c:\users\hp\anaconda3\lib\site-packages\pathlib2\__init__.py", line 1360, in glob
    raise NotImplementedError("Non-relative patterns are unsupported")
NotImplementedError: Non-relative patterns are unsupported
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