File: __init__.py

package info (click to toggle)
ros-bloom 0.13.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,212 kB
  • sloc: python: 8,113; makefile: 322; xml: 19
file content (21 lines) | stat: -rw-r--r-- 675 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Add the scripts folder to the path

import os
if 'PATH' in os.environ:
    scripts = os.path.join(os.path.dirname(__file__), '..', 'scripts')
    scripts = os.path.abspath(scripts)
    os.environ['PATH'] = scripts + ':' + os.environ['PATH']

os.environ['ROSDISTRO_INDEX_URL'] = 'file://' + os.path.join(
    os.path.dirname(os.path.abspath(__file__)),
    'fake_rosdistro',
    'index-v4.yaml',
)

user_email = 'test@example.com'
user_name = 'Test User'

os.environ.setdefault('GIT_AUTHOR_NAME', user_name)
os.environ.setdefault('GIT_AUTHOR_EMAIL', user_email)
os.environ.setdefault('GIT_COMMITTER_NAME', user_name)
os.environ.setdefault('GIT_COMMITTER_EMAIL', user_email)