Skip to content

Commit 4272139

Browse files
authored
Merge pull request #62 from Misakar-0v0/main
add help message && rm unnecessary imports
2 parents e036454 + 83163dc commit 4272139

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

ghostos/bootstrap.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ def abs_ghostos_dir() -> str:
130130
return dirname(dirname(__file__))
131131

132132
def abs_workspace_dir(self) -> str:
133-
from os.path import abspath, exists, isdir
134133
app_dir = abspath(self.workspace_dir)
135134
if exists(app_dir) and isdir(app_dir):
136135
return app_dir

ghostos/scripts/cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def main():
1717

1818
@main.command("web")
1919
@click.argument("python_file_or_module")
20-
@click.option("--src", "-s", default=".", show_default=True)
20+
@click.option("--src", "-s", default=".", show_default=True, help="load the directory to python path, make sure can import relative packages")
2121
def start_streamlit_web(python_file_or_module: str, src: str):
2222
"""
2323
turn a python file or module into a streamlit web agent

0 commit comments

Comments
 (0)