X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=setup.py;h=67e126e20a8b3c9e66b700d02f66f396dfffaeec;hb=11a4f1940277b545904f2f2c92d5914cb773a10a;hp=1649eb4690fe581a44bb0641cc1fb4b09cbbd7d3;hpb=7089bab4bf90bb34efbf0df39e952464b8bdb3f0;p=torbrowser-launcher.git diff --git a/setup.py b/setup.py index 1649eb4..67e126e 100644 --- a/setup.py +++ b/setup.py @@ -28,14 +28,14 @@ OTHER DEALINGS IN THE SOFTWARE. import os import sys -import platform +import distro import subprocess from distutils.core import setup SHARE = "share" # detect linux distribution -distro = platform.dist()[0] +distro = distro.linux_distribution()[0] def file_list(path): @@ -52,7 +52,9 @@ def create_mo_files(): return [] domain = "torbrowser-launcher" mo_files = [] - po_files = [f for f in next(os.walk(po_dir))[2] if os.path.splitext(f)[1] == ".po"] + po_files = sorted( + [f for f in next(os.walk(po_dir))[2] if os.path.splitext(f)[1] == ".po"] + ) for po_file in po_files: filename, extension = os.path.splitext(po_file) mo_file = domain + ".mo"