-//=========================================================================
-std::string GetExecutablePath()
-{
- char name[PATH_MAX];
- //EED int err = get_app_path(name, PATH_MAX);
- int err = crea::System::GetAppPath(name,PATH_MAX);
- if (err)
- {
- printf("Could not determine current executable path ? ");
- }
- // remove the exe name
- char *slash;
- slash = strrchr(name, CREACONTOUR_VALID_FILE_SEPARATOR_CHAR);
- if (slash)
- {
- *slash = 0;
- }
- return name;
-}