Skip to content

Commit

Permalink
[FIX] Change CWD for building React GUI in release.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KeyWeeUsr committed Mar 3, 2019
1 parent 2f24373 commit 1e87217
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
PYPI_REPO = environ.get('PYPI_REPO', 'https://upload.pypi.org/legacy/')


def run_proc(args):
def run_proc(args, options=None):
"""
Run a command outside of the interpreter,
but block until it's resolved.
"""
proc = Popen(args)
proc = Popen(args, **({} if not options else options))
proc.communicate()
return proc.returncode == 0

Expand All @@ -49,7 +49,10 @@ def run_clean():

def run_build():
"""Build React GUI."""
return run_proc(['sh', join(GUI_REACT, 'build_frontend.sh')])
return run_proc(
['sh', join(GUI_REACT, 'build_frontend.sh')],
options={'cwd': GUI_REACT}
)


def run_install():
Expand Down

0 comments on commit 1e87217

Please sign in to comment.