-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Description
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.