Skip to content

Commit

Permalink
test_ruamel_yaml_loader.py will not fail on missing ruamel (I like gi…
Browse files Browse the repository at this point in the history
…thub!))
  • Loading branch information
zerwes committed Oct 19, 2024
1 parent 4397fe7 commit 075c63c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/test_ruamel_yaml_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
import os
import logging
import platform
from ruamel.yaml import YAML
try:
from ruamel.yaml import YAML
except ModuleNotFoundError:
print('you need to install ruamel.yaml')
sys.exit(0)

basepath = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, os.path.dirname(basepath))
Expand Down

0 comments on commit 075c63c

Please sign in to comment.