[1.27.03] Windows, look for env variable ESPEAK_DATA_PATH.

espeakedit, fix crash in Compile_phoneme_data when there is no voices directory.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@58 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2007-07-03 11:32:43 +00:00
parent 26c3d3a9ee
commit 3303246b80
13 changed files with 96 additions and 76 deletions
+2 -2
View File
@@ -292,7 +292,7 @@ static void init_path(const char *path)
return;
}
if((env = getenv("ESPEAK-DATA-PATH")) != NULL)
if((env = getenv("ESPEAK_DATA_PATH")) != NULL)
{
sprintf(path_home,"%s/espeak-data",env);
if(GetFileLength(path_home) == -2)
@@ -316,7 +316,7 @@ static void init_path(const char *path)
return;
}
// if((env = getenv("ESPEAK-DATA-PATH")) != NULL)
// if((env = getenv("ESPEAK_DATA_PATH")) != NULL)
// {
// snprintf(path_home,sizeof(path_home),"%s/espeak-data",env);
// if(GetFileLength(path_home) == -2)