File: run-dev.py

package info (click to toggle)
cambalache 0.97.7-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,096 kB
  • sloc: python: 18,565; xml: 12,774; sql: 417; ansic: 215; makefile: 203; sh: 11
file content (39 lines) | stat: -rwxr-xr-x 1,251 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/python3
#
# run-dev - Script to run Cambalache from sources
#
# Copyright (C) 2025  Juan Pablo Ugarte
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# Authors:
#   Juan Pablo Ugarte <juanpablougarte@gmail.com>
#

import os
import sys
import locale

from tools.cmb_init_dev import cmb_init_dev

# Compile deps and install things in .local
cmb_init_dev()

basedir = os.path.join(os.path.split(os.path.dirname(__file__))[0])
locale.bindtextdomain("cambalache", os.path.join(basedir, ".local", "share", "locale"))
locale.textdomain("cambalache")

from cambalache.app import CmbApplication  # noqa E402

CmbApplication().run(sys.argv)