Skip to content

Commit

Permalink
Add commandline usage from git clone
Browse files Browse the repository at this point in the history
Just calling the script like this doesn't work, at least not with python 3.11:

    % python openqa_review/openqa_review.py
    Traceback (most recent call last):
      File "path/to/openqa_review/openqa_review/openqa_review.py", line 110, in <module>
        from .browser import Browser, DownloadError, BugNotFoundError, add_load_save_args  # isort:skip
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ImportError: attempted relative import with no known parent package
  • Loading branch information
perlpunk committed Aug 2, 2024
1 parent 166a7b1 commit 482139f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ pip3 install -r requirements.txt
pip3 install .
```

To call the script from the git clone, you have to use this form:

```
python3 -m openqa_review.openqa_review
```

or if you are using openSUSE distribution, it is recommended to use `zypper`,
e.g.:

Expand Down

0 comments on commit 482139f

Please sign in to comment.