File: git-bloom-branch

package info (click to toggle)
ros-bloom 0.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 920 kB
  • sloc: python: 7,684; makefile: 271; xml: 19
file content (24 lines) | stat: -rwxr-xr-x 760 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python

"""
This is a place holder script for use in testing.

The actual script which is installed is generated by python-setuptools.
"""

import os
import sys
# Prepend the bloom source directory to the path
bloom_src = os.path.join(os.path.dirname(__file__), '..', 'bloom')
if os.path.exists(bloom_src):
    sys.path.insert(0, os.path.abspath(os.path.dirname(bloom_src)))
# Prepend the scripts directory to the path
scripts_dir = os.path.join(os.path.dirname(__file__), '..', 'scripts')
if os.path.exists(scripts_dir):
    os.environ['PATH'] = os.path.abspath(scripts_dir) + \
        (':' + os.environ['PATH'] if 'PATH' in os.environ else '')

from bloom.commands.git.branch import main

if __name__ == '__main__':
    sys.exit(main() or 0)