From 8e77dbbe507d49f5bfce877fe37c2f9c83ff30a4 Mon Sep 17 00:00:00 2001 From: JCharis Date: Fri, 3 Jun 2022 23:02:38 +0200 Subject: [PATCH] Add Support For Streamlit Multipage --- webgenesis/webgenesis.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webgenesis/webgenesis.py b/webgenesis/webgenesis.py index c512d52..d38761b 100644 --- a/webgenesis/webgenesis.py +++ b/webgenesis/webgenesis.py @@ -171,7 +171,7 @@ def read_item(item_id: int, q: Optional[str] = None): DIR_PATH_STREAMLIT = 'hello-streamlit' FILE_PATH_STREAMLIT = 'hello-streamlit/app.py' -DIR_PATH_STREAMLIT_MULTIPAGE = 'hello-streamlit-multi' +DIR_PATH_STREAMLIT_MULTIPAGE = 'hello-streamlit-multi/pages' FILE_PATH_STREAMLIT_MULTIPAGE = 'hello-streamlit-multi/app.py' DIR_PATH_BOTTLE = 'hello-bottle/templates' @@ -225,6 +225,7 @@ def create_project_per_folder_st(TEMPLATE_TYPE,folder_name,language='py'): try: DIR_PATH_ALL = '{}/data'.format(folder_name) os.makedirs(DIR_PATH_ALL) + except: click.secho("A Similar Project Already Exist", fg="red") FILE_PATH_ALL = "{}/app.{}".format(folder_name,language) @@ -238,7 +239,7 @@ def create_project_per_folder_st(TEMPLATE_TYPE,folder_name,language='py'): @click.group( cls=HelpColorsGroup, help_headers_color="yellow", help_options_color="cyan" ) -@click.version_option("0.0.2", prog_name="webgenesis") +@click.version_option("0.0.3", prog_name="webgenesis") def main(): """Webgenesis : A simple CLI for creating basic starter templates for web frameworks """ pass