Don't try to read broken links

master
Yevgen Muntyan 2006-04-13 02:27:56 -05:00
parent 1a4c4a8294
commit 0af4d6bf1d
1 changed files with 4 additions and 1 deletions

View File

@ -294,7 +294,10 @@ moo_python_plugin_read_dir (const char *path)
prefix = g_strndup (name, suffix - name);
file_path = g_build_filename (path, name, NULL);
moo_python_plugin_read_file (file_path);
/* don't try broken links */
if (g_file_test (file_path, G_FILE_TEST_EXISTS))
moo_python_plugin_read_file (file_path);
g_free (prefix);
g_free (file_path);