Fix deep-module run

This commit is contained in:
hhh
2024-02-20 13:05:20 +02:00
parent 08bc8bec96
commit 7dd6bb79d8

View File

@@ -378,7 +378,9 @@ def _daemonize1(pid_file, *args, chdir=None, stdin_goto=None, stdout_goto=None,
before_script = '"'
if script_path.endswith('\\__main__.py'):
script_path = script_path[:-12].split('\\')[-1]
script_path = script_path[:-12]
script_path = script_path.removeprefix(os.getcwd())
script_path = script_path.replace('\\', '.').removeprefix('.')
before_script = '-m "'
if explicit_rescript is None: