Add wrapper script to allow standalone execution of the Scour module

(this was broken after d1c66cc75b)
This commit is contained in:
Eduard Braun 2015-11-15 16:52:53 +01:00
parent 55581d38b1
commit df11ee6588
2 changed files with 26 additions and 5 deletions

26
scour.py Normal file
View file

@ -0,0 +1,26 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Scour module wrapper script
#
# Copyright 2015 Eduard Braun
#
# This file is part of Scour, http://www.codedread.com/scour/
#
# 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.
# This file is a wrapper script around the actual Scour module (scour.py in scour folder)
# It allows execution of Scour without installation of the module.
from scour import scour
scour.run()

View file

@ -3280,8 +3280,3 @@ def start(options, input, output):
def run():
options, (input, output) = parse_args()
start(options, input, output)
if __name__ == '__main__':
run()