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.release import main
if __name__ == '__main__':
sys.exit(main() or 0)
|