]> git.lizzy.rs Git - torbrowser-launcher.git/blobdiff - setup.py
Merge branch 'develop' into expired_key
[torbrowser-launcher.git] / setup.py
index 6bb44b69325e904d3c10b1397128ad8f80d662c9..1649eb4690fe581a44bb0641cc1fb4b09cbbd7d3 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -69,9 +69,8 @@ with open(os.path.join(SHARE, "torbrowser-launcher/version")) as buf:
 
 datafiles = []
 for root, dirs, files in os.walk(SHARE):
-    datafiles.append(
-        (os.path.join(sys.prefix, root), [os.path.join(root, f) for f in files])
-    )
+    if files:
+        datafiles.append((root, [os.path.join(root, f) for f in files]))
 
 # disable shipping apparmor profiles until they work in ubuntu (#128)
 if distro != "Ubuntu":
@@ -92,7 +91,7 @@ if distro != "Ubuntu":
             ("/etc/apparmor.d/tunables/", ["apparmor/tunables/torbrowser"]),
         ]
 
-datafiles += [("/usr/share/locale/", create_mo_files())]
+datafiles += [(os.path.dirname(f), [f]) for f in create_mo_files()]
 
 setup(
     name="torbrowser-launcher",