Re: [pgadmin-hackers] [pgAdmin4] [PATCH] Simplify Server's python setup

Поиск
Список
Период
Сортировка
От Jan Alexander Steffens
Тема Re: [pgadmin-hackers] [pgAdmin4] [PATCH] Simplify Server's python setup
Дата
Msg-id CAMQ-g0dwCXCJfwGsT15pg9oJ4-MsMbcTF0ReNXf6OGmJn5wO0w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [pgadmin-hackers] [pgAdmin4] [PATCH] Simplify Server's python setup  (Dave Page <dpage@pgadmin.org>)
Ответы Re: [pgadmin-hackers] [pgAdmin4] [PATCH] Simplify Server's python setup  (Dave Page <dpage@pgadmin.org>)
Список pgadmin-hackers
On Fri, Jan 27, 2017 at 12:04 PM Dave Page <dpage@pgadmin.org> wrote:
On Thu, Jan 26, 2017 at 7:22 PM, Jan Alexander Steffens
<jan.steffens@gmail.com> wrote:
> Looking through the cpython code, Py_SetPath(NULL) clears the calculated
> module search path again. Try calling this before the Py_Initialize.

Unfortunately that just crashes:
 
1   org.python.python             0x000000010daec349 PySys_SetPath + 24

I did mean Py_SetPath, not PySys_SetPath. Unfortunately, after checking again it turns out this is Python 3 only. Python 2 has no means of changing the module_search_path from outside. So, there it definitely needs a restart. :-(

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Khushboo Vashi
Дата:
Сообщение: Re: [pgadmin-hackers] [pgAdmin4][Patch]: RM 2069 - Wrong tablespacedisplayed in table properties
Следующее
От: Dave Page
Дата:
Сообщение: Re: [pgadmin-hackers] Acceptance Tests against a browser (WIP)