]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Correcting mime detection behavior on windows plateform
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Sun, 15 Jul 2018 07:53:22 +0000 (09:53 +0200)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Sun, 15 Jul 2018 07:53:22 +0000 (09:53 +0200)
src/daComposant/daCore/Interfaces.py

index 76aea8824bf3000c3e45e98a88e75f030dfa346e..7737fa05ad006d889f1c3e2e1e2a45346e8c0773 100644 (file)
@@ -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
     # ------------------