Skip to content

Commit

Permalink
Merge pull request #855 from krishnaupadhyay3/executable_optional_arg
Browse files Browse the repository at this point in the history
optional boolean arguement added for executable function
  • Loading branch information
maximlopin committed Oct 24, 2020
2 parents a498368 + a628d84 commit e8949a1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mindsdb/utilities/wizards.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,14 @@ def daemon_creator(python_path, config_path=None):
return daemon_path


def make_executable(python_path, exec_path, config_path=None):
def make_executable(python_path, exec_path, config_path=None, update=False):
text = f"""#!/bin/bash
update={str(update).lower()}
if [ "$update" = true ]
then
{python_path} -m pip install mindsdb --upgrade
fi
{python_path} -m mindsdb { "--config="+config_path if config_path else ""}
"""

Expand Down

0 comments on commit e8949a1

Please sign in to comment.