Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snowblock relative configuration file path mismatch #14

Closed
arcticicestudio opened this issue Jan 7, 2017 · 0 comments
Closed

snowblock relative configuration file path mismatch #14

arcticicestudio opened this issue Jan 7, 2017 · 0 comments
Labels
Milestone

Comments

@arcticicestudio
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant