how to set the default GRAPHLAB_CACHE_FILE_LOCATIONS?

User 2728 | 5/17/2016, 11:12:57 PM

The default GRAPHLABCACHEFILELOCATIONS is /var/tmp. I know I can use gl.setruntimeconfig('GRAPHLABCACHEFILELOCATIONS','/tmp/') for each code. But how could I use /tmp location as default?


User 1207 | 5/17/2016, 11:40:03 PM

Hello @chi,

All of the runtime configuration parameters can be read from environment variables as well as set after import. For example, if you set GRAPHLABCACHEFILE_LOCATIONS='/tmp' as an environment variable before you start python, then GLC will pick that up.

Soon we're releasing a way to make this much easier to use and set by using a config file, but that's not out yet.

-- Hoyt

User 2728 | 5/18/2016, 2:10:04 AM

@hoytak Thanks! It worked.

User 1207 | 5/18/2016, 5:40:42 PM