From 4ea954583e5c45a167cc4a7ed60121fd3e056b83 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauld.mccarthy@gmail.com>
Date: Thu, 7 Jul 2016 12:34:39 +0100
Subject: [PATCH] FSLDirDialog defaults to /usr/local/.

---
 fsl/utils/dialog.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/fsl/utils/dialog.py b/fsl/utils/dialog.py
index 83dd52a7e..e31ee2ad2 100644
--- a/fsl/utils/dialog.py
+++ b/fsl/utils/dialog.py
@@ -18,9 +18,10 @@ use throughout ``fslpy``. The available dialogs are:
 """
 
 
-import threading
+import os.path as op
+import            threading
 
-import wx
+import            wx
 
 from .platform import platform as fslplatform
 
@@ -708,6 +709,7 @@ class FSLDirDialog(wx.Dialog):
         dlg = wx.DirDialog(
             self,
             message='Select the directory in which FSL is installed',
+            defaultPath=op.join('usr', 'local'),
             style=wx.DD_DEFAULT_STYLE | wx.DD_DIR_MUST_EXIST)
 
         if dlg.ShowModal() != wx.ID_OK:
-- 
GitLab