Mercurial > hg > camir-aes2014
annotate toolboxes/graph_visualisation/graphViz4Matlab/util/setupPath.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
rev | line source |
---|---|
wolffd@0 | 1 function gvizPath = setupPath() |
wolffd@0 | 2 % Attempt to add GraphViz to the system path, (temporariliy within the |
wolffd@0 | 3 % matlab session only). |
wolffd@0 | 4 gvizPath = 'unknown'; |
wolffd@0 | 5 if ~ispc() |
wolffd@0 | 6 return |
wolffd@0 | 7 end |
wolffd@0 | 8 try %#ok |
wolffd@0 | 9 gvizPath = winqueryreg('HKEY_LOCAL_MACHINE','SOFTWARE\AT&T Research Labs\Graphviz', 'InstallPath'); |
wolffd@0 | 10 addtosystempath(fullfile(gvizPath, 'bin')); |
wolffd@0 | 11 end |
wolffd@0 | 12 end |