[
https://issues.apache.org/jira/browse/AURORA-558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14049434#comment-14049434
]
Jay Buffington commented on AURORA-558:
---------------------------------------
I understand you to be saying that there is already a way to find included
.aurora files: just use the same mechanisms python uses to import libraries,
since after all, .aurora files are just python files.
But I can't seem to get that to work, and I can't square what you're saying
with the code.
{code}
$ cd `mktemp -d`
$ mkdir includes
$ touch includes/hello_world.aurora
$ echo -e "import
sys\nsys.path.append('./includes')\ninclude('hello_world.aurora')\n" >
./test_include.aurora
$ aurora create foo/bar/baz/bax test_include.aurora
Traceback (most recent call last):
*snip*
IOError: [Errno 2] No such file or directory: 'hello_world.aurora'
{code}
I looked at src/test/python/apache/aurora/client/test_config.py but that tests
including a file from an absolute path, which isn't what I'm looking for.
> aurora client should look for include()'ed files based on known search path
> ---------------------------------------------------------------------------
>
> Key: AURORA-558
> URL: https://issues.apache.org/jira/browse/AURORA-558
> Project: Aurora
> Issue Type: Story
> Components: Client
> Reporter: Jay Buffington
>
> We've written a standard library of sorts to be shared across our
> organization. It includes processes for doing things like downloading the
> app in a standard way, notifying a service discovery service, etc. and
> pystachio structs for things like modeling variables for our custom web
> framework.
> After a cursory glance at the code, it looks like these .aurora files have to
> be included as either an absolute path or a path relative to where the aurora
> command was run.
> When the path is relative I'd like the aurora client to first search a set of
> paths defined by an environment var like $AURORA_INC_PATH, then ./ and then a
> default set of directories that is built into the client like
> /etc/aurora/include/
--
This message was sent by Atlassian JIRA
(v6.2#6252)