forked from usnistgov/OOF2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
oof2
40 lines (32 loc) · 1.29 KB
/
oof2
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
36
37
38
39
40
#! python
# -*- python -*-
# $RCSfile: oof2,v $
# $Revision: 1.8 $
# $Author: langer $
# $Date: 2011/11/02 18:03:17 $
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities associated
# with its operation, modification and maintenance. However, to
# facilitate maintenance we ask that before distributing modified
# versions of this software, you first contact the authors at
# oof_manager@ctcms.nist.gov.
# This is the start-up script for oof2. It is installed as an
# executable file in the bin directory, *not* the python library.
# "import oof2" statements refer to the oof2 module in the library,
# not to this file.
import sys
import os
# need to set path so that it imports the oof package that we want
import oof2
sys.path.append(os.path.dirname(oof2.__file__))
# All user input is evaluated in this environment, so first import
# useful things like the math library.
from math import *
# The real start-up code is in ooflib.common.oof. Until it is loaded,
# no modules containing oof C++ code can be used. Therefore, don't
# even try loading any other oof code (not even the debug module)
# before here!
from ooflib.common import oof
oof.run()
sys.exit()