Skip to content

snowblock relative configuration file path mismatch #14

@arcticicestudio

Description

@arcticicestudio

The path to the configuration file for each snowblock is relative to the base snowblocks directory. This causes all snowblocks to be skipped when the snowsaw.cli#main() method tests if the currently processed snowblock configuration file exists:

if os.path.isfile(os.path.join(snowblock, snowblock_config_filename)):

This resulted in a Skipped snowblock "<SNOWBLOCK>": No configuration file found log because the condition has not been fulfilled caused by the relative path resolution.

Solution
This can be fixed by adding the absolute path of the base snowblock directory as join parameter

if os.path.isfile(os.path.join(options.snowblocks_directory[0] , snowblock, snowblock_config_filename)):

and also adjusting conditions inside the loop where the relative path has been used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions