Skip to content

Commit

Permalink
Read AIRFLOW_HOME from env even if click on App
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-kotliar committed Sep 13, 2019
1 parent c5a9654 commit c0fbbf4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cwl_airflow/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

class App(toga.App):

__airflow_home_default = "~/airflow"
__launcher = None

def load(self, widget):
Expand All @@ -18,7 +17,7 @@ def unload(self, widget):

def startup(self):
# Create Launcher
self.__launcher = Launcher(self.__airflow_home_default)
self.__launcher = Launcher(os.environ.get("AIRFLOW_HOME"))
self.__launcher.configure()

# Create a main window with a name matching the app
Expand Down

0 comments on commit c0fbbf4

Please sign in to comment.