1#!/usr/bin/env python
 2
 3"""Main myproj launcher executable."""
 4
 5import os
 6import sys
 7
 8# from pathlib import Path
 9
10# Find our location
11# dont use unipath until after the env check
12bin_path = os.path.abspath(os.path.dirname(__file__))
13#bin_path = Path(__file__).parent.absolute()
14
15# Add bin directory to PATH in case we need to reload ourselves)
16# os.environ['PATH'] = BIN_PATH + ':' + os.environ['PATH']
17
18# Top level project directory
19proj_dir = os.path.dirname(bin_path)
20
21# Add project to PYTHONPATH ...
22#   ... for this process ...
23sys.path.insert(0, proj_dir)
24#   ... and for future processes
25os.environ['PYTHONPATH'] = ':'.join((proj_dir, os.environ.get('PYTHONPATH', '')))
26
27# Set us up as the active CHART project
28from {{name}} import project
29project.init()
30
31# Set us up as the active CHART project
32# from myproj import project
33from chart.tools import launcher
34
35# avoid pylint error
36# project.init()
37
38# pass control to the launcher module
39launcher.launch()