Skip to content

Commit

Permalink
fix: use memos.commands for bat
Browse files Browse the repository at this point in the history
  • Loading branch information
arkohut committed Oct 4, 2024
1 parent 4b0e469 commit 8c557bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions memos/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -915,14 +915,14 @@ def generate_windows_bat():
activate_path = os.path.join(conda_prefix, "Scripts", "activate.bat")
content = f"""@echo off
call "{activate_path}"
start "" "{python_path}" -m memos record
start "" "{python_path}" -m memos serve
start "" "{python_path}" -m memos.commands record
start "" "{python_path}" -m memos.commands serve
"""
else:
# If we're not in a Conda environment, use the original content
content = f"""@echo off
start "" "{python_path}" -m memos record
start "" "{python_path}" -m memos serve
start "" "{python_path}" -m memos.commands record
start "" "{python_path}" -m memos.commands serve
"""

bat_path = memos_dir / "launch.bat"
Expand Down

0 comments on commit 8c557bb

Please sign in to comment.