mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-19 18:16:25 +00:00
Execute python3 in seafile controller.
This commit is contained in:
@@ -220,10 +220,7 @@ get_python_executable() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const char *try_list[] = {
|
static const char *try_list[] = {
|
||||||
"python2.7",
|
"python3"
|
||||||
"python27",
|
|
||||||
"python2.6",
|
|
||||||
"python26",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
@@ -289,16 +286,10 @@ setup_python_path()
|
|||||||
g_build_filename (installpath, "seahub/seahub-extra/thirdparts", NULL));
|
g_build_filename (installpath, "seahub/seahub-extra/thirdparts", NULL));
|
||||||
|
|
||||||
path_list = g_list_prepend (path_list,
|
path_list = g_list_prepend (path_list,
|
||||||
g_build_filename (installpath, "seafile/lib/python2.6/site-packages", NULL));
|
g_build_filename (installpath, "seafile/lib/python3.6/site-packages", NULL));
|
||||||
|
|
||||||
path_list = g_list_prepend (path_list,
|
path_list = g_list_prepend (path_list,
|
||||||
g_build_filename (installpath, "seafile/lib64/python2.6/site-packages", NULL));
|
g_build_filename (installpath, "seafile/lib64/python3.6/site-packages", NULL));
|
||||||
|
|
||||||
path_list = g_list_prepend (path_list,
|
|
||||||
g_build_filename (installpath, "seafile/lib/python2.7/site-packages", NULL));
|
|
||||||
|
|
||||||
path_list = g_list_prepend (path_list,
|
|
||||||
g_build_filename (installpath, "seafile/lib64/python2.7/site-packages", NULL));
|
|
||||||
|
|
||||||
path_list = g_list_reverse (path_list);
|
path_list = g_list_reverse (path_list);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user