23 lines
503 B
Python
Executable File
23 lines
503 B
Python
Executable File
#!/usr/bin/env python
|
|
# -*- python-mode -*-
|
|
"""Takes care of starting the main function."""
|
|
|
|
from __future__ import absolute_import
|
|
|
|
|
|
def init_paths():
|
|
"""Make the app work in the source tree."""
|
|
import sys
|
|
import os.path as _path
|
|
|
|
src_lib = _path.normpath(_path.join(_path.realpath(sys.path[0]), '..', 'src'))
|
|
init_py = _path.join(src_lib, 'solaar', '__init__.py')
|
|
if _path.exists(init_py):
|
|
sys.path[0] = src_lib
|
|
|
|
|
|
if __name__ == '__main__':
|
|
init_paths()
|
|
import solaar.gtk
|
|
solaar.gtk.main()
|