X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=functions.py;h=62f669ce24d0ee52a58780313a183b7d0c1aff53;hp=8cd7352bf2b00334a4f8dad38f95150bb907819f;hb=aae91ab48172a83c49bb502ac737bcc1b3a6685c;hpb=b97b227a7f3f45bf2258f12853e4de9d7aa39f96 diff --git a/functions.py b/functions.py index 8cd7352..62f669c 100644 --- a/functions.py +++ b/functions.py @@ -30,6 +30,14 @@ log = logging.getLogger('iramuteq') indices_simi = [u'cooccurrence' ,'pourcentage de cooccurrence',u'Russel',u'Jaccard', 'Kulczynski1', 'Kulczynski2', 'Mountford', 'Fager', 'simple matching', 'Hamman', 'Faith', 'Tanimoto', 'Dice', 'Phi', 'Stiles', 'Michael', 'Mozley', 'Yule', 'Yule2', 'Ochiai', 'Simpson', 'Braun-Blanquet','Chi-squared', 'Phi-squared', 'Tschuprow', 'Cramer', 'Pearson', 'binomial'] + +def open_folder(folder): + if sys.platform == "win32": + os.startfile(folder) + else: + opener ="open" if sys.platform == "darwin" else "xdg-open" + call([opener, folder]) + def normpath_win32(path) : if not sys.platform == 'win32' : return path