-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathtecs.py
More file actions
44 lines (41 loc) · 1.28 KB
/
tecs.py
File metadata and controls
44 lines (41 loc) · 1.28 KB
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
41
42
43
44
#!/usr/bin/env python
# coding=utf8
#
# Copyright 2017 Ilya Zhivetiev <i.zhivetiev@gnss-lab.org>
#
# This file is part of tec-suite.
#
# tec-suite is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# tec-suite is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with tec-suite. If not, see <http://www.gnu.org/licenses/>.
""" """
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import os
import sys
from builtins import str
from tecs.__main__ import run
if os.name == 'nt':
try:
wd = os.getcwd()
os.environ['PATH'] = "%s;%s" % (wd, os.environ['PATH'])
run()
except Exception as err:
print(str(err))
finally:
msg = '\nPress Enter key to close the window.'
print(msg)
sys.stdin.readline()
else:
run()