/** Returns the file path to the standard * reports, usually * "$prefix/share/gnucash/scm/gnucash/report/standard-reports". * * @returns A newly allocated string. */ gchar *gnc_path_get_stdreportsdir() { gchar *reportdir = gnc_path_get_reportdir (); gchar *result = g_build_filename (reportdir, "standard-reports", NULL); g_free (reportdir); //printf("Returning stdreportsdir %s\n", result); return result; }
/** Returns the file path to the standard * reports, usually * "$prefix/share/gnucash/scm/gnucash/report/standard-reports". * * @returns A newly allocated string. */ gchar *gnc_path_get_stdreportsdir() { gchar *result; gchar *reportdir = gnc_path_get_reportdir (); if (g_getenv ("GNC_UNINSTALLED")) { result = g_build_filename (reportdir, "standard-reports", "gnucash", "report", "standard-reports", NULL); } else { result = g_build_filename (reportdir, "standard-reports", NULL); } g_free (reportdir); //printf("Returning stdreportsdir %s\n", result); return result; }
gchar * gnc_build_report_path (const gchar *filename) { gchar *result = g_build_filename(gnc_path_get_reportdir(), filename, (gchar *)NULL); return result; }