test-fullautomation / python-jsonpreprocessor

A preprocessor for json files
Apache License 2.0
3 stars 2 forks source link

Cyclic import with dynamic paths not detected #380

Open HolQue opened 1 week ago

HolQue commented 1 week ago

An imported file imports itself. All imports based on dynamic paths.

Result:

The import is not resolved. The cyclic import is not detected.

{'[import]': '... /dynamic_imports/cyclic_import_2.jsonp',
 'imports_dir': 'dynamic_imports',
 'root_name': 'cyclic_import'}

Expected: Cyclic import detected

Detection must work on any level. Can be also that cyclic import appears two levels deeper.

HolQue commented 8 hours ago

Imports are resolved now. But: https://github.com/test-fullautomation/python-jsonpreprocessor/issues/387