2019-09-23 15:04:52 +00:00
|
|
|
#!/usr/bin/python2
|
2014-04-07 20:43:39 +00:00
|
|
|
# vim: tabstop=4 shiftwidth=4 softtabstop=4
|
|
|
|
|
|
|
|
# Copyright 2014 IBM Corporation
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2013-07-19 14:31:02 +00:00
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
path = os.path.dirname(os.path.realpath(__file__))
|
2014-07-14 18:54:12 +00:00
|
|
|
path = os.path.realpath(os.path.join(path, '..', 'lib', 'python'))
|
|
|
|
if path.startswith('/opt'):
|
2014-05-06 17:37:31 +00:00
|
|
|
# if installed into system path, do not muck with things
|
|
|
|
sys.path.append(path)
|
2015-09-23 15:58:48 +00:00
|
|
|
import confluent.main
|
2013-07-19 14:31:02 +00:00
|
|
|
|
2014-04-03 13:54:46 +00:00
|
|
|
#import cProfile
|
|
|
|
#import time
|
|
|
|
#p = cProfile.Profile(time.clock)
|
|
|
|
#p.enable()
|
|
|
|
#try:
|
2015-09-23 15:58:48 +00:00
|
|
|
import multiprocessing
|
2015-07-31 21:07:40 +00:00
|
|
|
if __name__ == '__main__':
|
|
|
|
multiprocessing.freeze_support()
|
2020-01-31 13:10:01 +00:00
|
|
|
confluent.main.run(sys.argv)
|
2014-04-03 13:54:46 +00:00
|
|
|
#except:
|
|
|
|
# pass
|
|
|
|
#p.disable()
|
|
|
|
#p.print_stats(sort='cumulative')
|
|
|
|
#p.print_stats(sort='time')
|