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

Include color schemes in the package #110

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Felixoid
Copy link
Contributor

Without it, the program doesn't work with the following issue:

$ mdv README.md
Traceback (most recent call last):
  File "/usr/bin/mdv", line 33, in <module>
    sys.exit(load_entry_point('mdv==1.7.5', 'console_scripts', 'mdv')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mdv/markdownviewer.py", line 1706, in run
    print(main(**kw) if PY3 else str(main(**kw)))
          ^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mdv/markdownviewer.py", line 1312, in main
    theme = random_theme(theme_dirs)
            ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mdv/markdownviewer.py", line 1249, in random_theme
    [r.extend([k for k in os.listdir(d) if k.endswith('.json')]) for d in dirs]
  File "/usr/lib/python3.11/site-packages/mdv/markdownviewer.py", line 1249, in <listcomp>
    [r.extend([k for k in os.listdir(d) if k.endswith('.json')]) for d in dirs]
                          ^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.11/site-packages/mdv/b16'

@Felixoid
Copy link
Contributor Author

That escalated quickly.. what's the proper way to solve it?

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

Successfully merging this pull request may close these issues.

1 participant