Merge pull request #63 from xarses/fix-broken-master

Use base path in as resources directory
This commit is contained in:
CGenie 2015-05-29 16:33:42 +02:00
commit 73206976b0
2 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class BaseHandler(object):
def _make_args(self, resource):
args = {'name': resource.name}
args['resource_dir'] = resource.metadata['actions_path']
args['resource_dir'] = resource.metadata['base_path']
args.update(resource.args)
return args

View File

@ -129,6 +129,7 @@ def create(name, base_path, args, tags=[], connections={}):
meta['version'] = '1.0.0'
meta['actions'] = {}
meta['actions_path'] = actions_path
meta['base_path'] = os.path.abspath(base_path)
if os.path.exists(actions_path):
for f in os.listdir(actions_path):