]> git.lizzy.rs Git - torbrowser-launcher.git/commitdiff
Remove absolute install paths
authorAsciiWolf <mail@asciiwolf.com>
Fri, 30 Aug 2019 12:28:54 +0000 (14:28 +0200)
committerAsciiWolf <mail@asciiwolf.com>
Fri, 30 Aug 2019 12:28:54 +0000 (14:28 +0200)
setup.py

index f9739ab53b9e7ef5464ef16061bb3a44b2a17983..a79d3b39898806c3b76c2a6f5757469fc3f4b58a 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -71,8 +71,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':
@@ -88,7 +88,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',