Skip to content

Commit 8a49d52

Browse files
committed
revert: keep main's dispatcher.c
1 parent 4bed12b commit 8a49d52

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

src/omnipkg/dispatcher.c

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ static void fallback_to_python_v(const char *self_dir, char **argv,
11021102
char **new_argv = malloc((argc + 4) * sizeof(char *));
11031103
new_argv[0] = py;
11041104
new_argv[1] = "-m";
1105-
new_argv[2] = "omnipkg.cli";
1105+
new_argv[2] = "omnipkg.dispatcher";
11061106
int out = 3;
11071107
if (inject_version) {
11081108
new_argv[out++] = "--python";
@@ -2200,16 +2200,7 @@ int main(int argc, char **argv) {
22002200
}
22012201
}
22022202
}
2203-
int is_uninstall_python = 0;
2204-
if (argc >= 3 && strcmp(argv[1], "uninstall") == 0) {
2205-
for (int _i = 2; _i < argc; _i++) {
2206-
if (strncmp(argv[_i], "python", 6) == 0) {
2207-
is_uninstall_python = 1;
2208-
break;
2209-
}
2210-
}
2211-
}
2212-
is_interactive_command = ((is_info && !info_python) || is_config || is_logs_follow || is_uninstall_python);
2203+
is_interactive_command = ((is_info && !info_python) || is_config || is_logs_follow);
22132204
}
22142205
if (!is_swap_python && !is_interactive_command) {
22152206
try_daemon_cli(target_python, argc, argv, version_injected, forced_version);

0 commit comments

Comments
 (0)