We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac00ff4 commit 2a3dc8eCopy full SHA for 2a3dc8e
1 file changed
photomap/backend/photomap_server.py
@@ -109,9 +109,7 @@ async def get_root(
109
def start_photomap_loop():
110
"""Start the PhotoMapAI server loop."""
111
running = True
112
- exe_dir = os.path.dirname(sys.executable)
113
- photomap_server_exe = os.path.join(exe_dir, Path(sys.argv[0]).name)
114
- args = [photomap_server_exe] + sys.argv[1:] + ["--once"]
+ args = [sys.executable] + ["-m", "photomap.backend.photomap_server"] + sys.argv[1:] + ["--once"]
115
116
while running:
117
try:
0 commit comments