Skip to content

Commit

Permalink
Adhere to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
mottosso committed Aug 2, 2017
1 parent a3d89af commit 921c276
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions launcher/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ def cli():
[os.getenv(dependency) for dependency in dependencies]
)

# Fulfill schema, and expect the application
# to fill it in in due course.
for placeholder in ("AVALON_PROJECT",
"AVALON_ASSET",
"AVALON_SILO",
"AVALON_TASK",
"AVALON_APP",):
os.environ[placeholder] = "placeholder"

# Expose dependencies to Launcher
sys.path[:] = [
os.getenv(dep) for dep in dependencies
Expand Down
2 changes: 1 addition & 1 deletion launcher/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ def launch(self, name):

frame = self.current_frame()
frame["environment"]["root"] = self._root
frame["environment"]["app"] = app["application_dir"]

template_private = frame["config"]["template"]["work"]

try:
workdir = template_private.format(**dict(
user=getpass.getuser(),
app=app["application_dir"],
**frame["environment"]
))

Expand Down

0 comments on commit 921c276

Please sign in to comment.