From: Jean-Philippe ARGAUD Date: Sun, 15 Jul 2018 07:53:22 +0000 (+0200) Subject: Correcting mime detection behavior on windows plateform X-Git-Tag: V9_2_0b_ok_ADAO~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ce8492069a8e2c6ec5fd349e803b01ffce0c38c1;p=modules%2Fadao.git Correcting mime detection behavior on windows plateform --- diff --git a/src/daComposant/daCore/Interfaces.py b/src/daComposant/daCore/Interfaces.py index 76aea88..7737fa0 100644 --- a/src/daComposant/daCore/Interfaces.py +++ b/src/daComposant/daCore/Interfaces.py @@ -559,6 +559,10 @@ class ImportDetector(object): # mimetypes.add_type('application/numpy.npy', '.npy') mimetypes.add_type('application/numpy.npz', '.npz') + if sys.platform.startswith("win"): + mimetypes.add_type('text/plain', '.txt') + mimetypes.add_type('text/csv', '.csv') + mimetypes.add_type('text/tab-separated-values', '.tsv') # # File related f # ------------------