thesimj / envyaml

Simple YAML configuration file parser
MIT License
78 stars 21 forks source link

yaml tag support needed I guess #46

Open cenkuyan-tomtom opened 1 year ago

cenkuyan-tomtom commented 1 year ago

Describe the bug When the sample code is executed with a .yml config that contains yaml tags (in this case, !!os.path.join) , the following error is thrown:

E       yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/object/apply:os.path.join'
E         in "<unicode string>", line 5, column 15:
E             table_path: !!python/object/apply:os.path.jo ... 
E  `
`

To Reproduce try with the following yaml

  base_path: &base_path abfss://foo@blabla.dfs.core.windows.net/
  table_path: &table_path bar
 uri:  !!python/object/apply:os.path.join [ *base_path, *table_path ]

Expected behavior the yaml file is parsed without errors

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context

python 3.9