Github user tliron commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/81#discussion_r107708205
--- Diff: aria/cli/commands.py ---
@@ -241,12 +241,9 @@ def _get_workflow(self, context, workflow_name):
if workflow.type.role != 'workflow':
raise AttributeError('policy is not a workflow:
"{0}"'.format(workflow_name))
- try:
-
sys.path.append(workflow.properties['implementation'].value)
- except KeyError:
- pass
+
sys.path.append(os.path.dirname(str(context.presentation.location)))
--- End diff --
My previous implementation had a stupid extra `function` property which was
just a temporary solution. Obviously it's enough to just have an
`implementation` property. Until we handle true CSAR, I guess we can just
pretend that artifacts are in the same directory as the main YAML.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---