blob: eba10fbced59511ab99d8f97ec115618d3243f61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--- a/setup.py 2019-05-07 18:52:38.000000000 +0200
+++ b/setup.py 2019-07-26 23:05:18.000000000 +0200
@@ -33,7 +33,6 @@
#long_description=long_description,
packages= find_packages(),
include_package_data=True,
- data_files = [('yowsup/common', ['yowsup/common/mime.types'])],
platforms='any',
#test_suite='',
classifiers = [
--- a/yowsup/common/tools.py 2019-05-07 18:52:38.000000000 +0200
+++ b/yowsup/common/tools.py 2019-07-26 23:05:38.000000000 +0200
@@ -173,7 +173,7 @@
return preview
class MimeTools:
- MIME_FILE = os.path.join(os.path.dirname(__file__), 'mime.types')
+ MIME_FILE = os.path.join('/usr/share/yowsup/common', 'mime.types')
mimetypes.init() # Load default mime.types
try:
mimetypes.init([MIME_FILE]) # Append whatsapp mime.types
|