forked from Ivasoft/DSView
Set python home at windows os
This commit is contained in:
@@ -361,6 +361,7 @@ struct srd_pd_callback {
|
||||
SRD_API int srd_init(const char *path);
|
||||
SRD_API int srd_exit(void);
|
||||
SRD_API GSList *srd_searchpaths_get(void);
|
||||
SRD_API void srd_set_python_home(const char *path);
|
||||
|
||||
/* session.c */
|
||||
SRD_API int srd_session_new(struct srd_session **sess);
|
||||
|
||||
@@ -386,4 +386,10 @@ SRD_API GSList *srd_searchpaths_get(void)
|
||||
return paths;
|
||||
}
|
||||
|
||||
//set python home directory
|
||||
SRD_API void srd_set_python_home(const char *path)
|
||||
{
|
||||
Py_SetPythonHome((wchar_t*)path);
|
||||
}
|
||||
|
||||
/** @} */
|
||||
|
||||
Reference in New Issue
Block a user