Browse Source

Use safe_load I don't need everything from PyYaml for a config file

master
Raphael Roberts 5 years ago
parent
commit
e32559586c
  1. 2
      tibi_hardlinks/config.py

2
tibi_hardlinks/config.py

@ -20,4 +20,4 @@ if not os.path.exists(CONFIG_FILE_PATH):
shutil.copy(os.path.join(PACKAGE_ROOT, "config.yml"), CONFIG_FILE_PATH) shutil.copy(os.path.join(PACKAGE_ROOT, "config.yml"), CONFIG_FILE_PATH)
with open(CONFIG_FILE_PATH, "r") as config_file: with open(CONFIG_FILE_PATH, "r") as config_file:
CONFIG_DATA = yaml.load(config_file)
CONFIG_DATA = yaml.safe_load(config_file)
Loading…
Cancel
Save