Way to specify GST_DEBUG_DUMP_DOT_DIR without setting env?

Anybody know a way to set the dump dir for .dot files without setting an environment variable? Gst.debug_bin_to_dot_file doesn’t seem to like absolute paths, but it would be really handy for my purposes. Right now, I’m setting it globally in my .bashrc, but that means it gets used for every gstreamer based app and I want to dump my app’s .dot files to a specific directory.

You can call g_setenv() in his application before gst_init() call.

Thanks, Chris. That works for me!