Skip to content

Commit

Permalink
fix: flex-linux-setup setup profile
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed May 2, 2022
1 parent 4a97270 commit 727bbcd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions flex-linux-setup/flex_linux_setup/flex_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,17 @@ def get_flex_setup_parser():
from setup_app import static
from setup_app.utils import base

profile_fn = os.path.join(base.par_dir, 'profile')
if os.path.exists(profile_fn):
with open(profile_fn) as f:
profile = f.read().strip()
else:
profile = 'jans'

os.environ['JANS_PROFILE'] = profile
base.current_app.profile = profile


if 'SETUP_BRANCH' not in base.current_app.app_info:
base.current_app.app_info['SETUP_BRANCH'] = argsp.jans_setup_branch

Expand Down

0 comments on commit 727bbcd

Please sign in to comment.