data.py 1.12 KB
Newer Older
rgaudin's avatar
rgaudin committed
1
# -*- coding: utf-8 -*-
2
# vim: ai ts=4 sts=4 et sw=4 nu
rgaudin's avatar
rgaudin committed
3

thiolliere's avatar
thiolliere committed
4
5
6
7
8
9
10
11
12
import os
import sys

if getattr(sys, "frozen", False):
    data_dir = sys._MEIPASS
else:
    data_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))

ui_glade = os.path.join(data_dir, "ui.glade")
13
_vexpress_boot_dir = "vexpress-boot"
thiolliere's avatar
thiolliere committed
14
vexpress_boot_kernel = os.path.join(data_dir, _vexpress_boot_dir, "zImage")
15
16
17
vexpress_boot_dtb = os.path.join(
    data_dir, _vexpress_boot_dir, "vexpress-v2p-ca15_a7.dtb"
)
thiolliere's avatar
thiolliere committed
18

19
pibox_logo = os.path.join(data_dir, "kiwix-hotspot-logo.png")
thiolliere's avatar
thiolliere committed
20

21
cache_folder_name = "kiwix-hotspot.cache"
22
content_file = os.path.join(data_dir, "contents.json")
thiolliere's avatar
thiolliere committed
23
24

ansiblecube_path = os.path.join(data_dir, "ansiblecube")
thiolliere's avatar
thiolliere committed
25

rgaudin's avatar
rgaudin committed
26
mirror = "http://download.kiwix.org"
27
sdcard_sizes = (8, 16, 32, 64, 128, 200, 256)
rgaudin's avatar
rgaudin committed
28

29
30
http_proxy_test_url = "http://download.kiwix.org/library/ideascube.yml"
https_proxy_test_url = "https://download.kiwix.org/library/ideascube.yml"
31

rgaudin's avatar
rgaudin committed
32
hotspot_languages = [("en", u"English"), ("fr", u"Fran\xe7ais")]
33

34
help_url = "https://github.com/kiwix/kiwix-hotspot/wiki/FAQ"
rgaudin's avatar
rgaudin committed
35
etcher_url = "https://etcher.io/"
36

rgaudin's avatar
rgaudin committed
37
38
data_partition_label = "HSPOT_DATA"

39
VERSION = "devel"