~rachidbm/ubuntu-l10n-tools/search

« back to all changes in this revision

Viewing changes to bin/ul10n-lp-set-pot-priority

  • Committer: David Planella
  • Date: 2011-05-26 11:08:04 UTC
  • Revision ID: david.planella@ubuntu.com-20110526110804-jixktqalpof57z5p
Added a README file with the tool descriptions and a new tool to set the priority of templates

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
 
3
### BEGIN LICENSE
 
4
# This file is in the public domain
 
5
### END LICENSE
 
6
 
 
7
import os
 
8
import sys
 
9
 
 
10
# Add project root directory (enable symlink, and trunk execution).
 
11
PROJECT_ROOT_DIRECTORY = os.path.abspath(
 
12
    os.path.dirname(os.path.dirname(os.path.realpath(sys.argv[0]))))
 
13
 
 
14
if (os.path.exists(os.path.join(PROJECT_ROOT_DIRECTORY, 'ul10n_tools'))
 
15
    and PROJECT_ROOT_DIRECTORY not in sys.path):
 
16
    sys.path.insert(0, PROJECT_ROOT_DIRECTORY)
 
17
    os.putenv('PYTHONPATH', PROJECT_ROOT_DIRECTORY) # for subprocesses
 
18
 
 
19
import ul10n_tools.lp_pot_set_priority as lp_pot_set_priority
 
20
 
 
21
lp_pot_set_priority.main()