-
Notifications
You must be signed in to change notification settings - Fork 96
/
pylith.in
35 lines (29 loc) · 885 Bytes
/
pylith.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!@INTERPRETER@
# -*- Python -*-
#
# ----------------------------------------------------------------------
#
# Brad T. Aagaard
# U.S. Geological Survey
#
# <LicenseText>
#
# ----------------------------------------------------------------------
#
## @file applications/pylith
## @brief Python PyLith application driver
__requires__ = "PyLith"
if __name__ == "__main__":
# re-create the PYTHONPATH at 'configure' time
import os.path, sys, site
path = '@PYTHONPATH@'.split(':')
path.reverse()
for directory in path:
if directory:
directory = os.path.abspath(directory)
sys.path.insert(1, directory)
site.addsitedir(directory)
from pylith.apps.PyLithApp import PyLithApp
from pyre.applications import start
start(applicationClass=PyLithApp)
# End of file