def gcd(wxparent=None, _larch=None, **kws):
    dlg = wx.DirDialog(None, 'Choose Directory',
                       defaultPath = os.getcwd(),
                       style = wx.DD_DEFAULT_STYLE)

    if dlg.ShowModal() == wx.ID_OK:
        os.chdir(dlg.GetPath())
    dlg.Destroy()
    return os.getcwd()
Test detect() function.
dataset/ETHPy150Open xraypy/xraylarch/plugins/wx/gui_utils.py/gcd--crossover with--dataset/ETHPy150Open JT5D/Alfred-Popclip-Sublime/Sublime Text 2/JsFormat/libs/jsbeautifier/unpackers/tests/testmyobfuscate.py/TestMyObfuscate.test_detect