Merge pull request #63 from xarses/fix-broken-master
Use base path in as resources directory
This commit is contained in:
commit
73206976b0
@ -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
|
||||
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user