SLIDER-153 stub main()
Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/d6131ca4 Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/d6131ca4 Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/d6131ca4 Branch: refs/heads/feature/SLIDER-151_Implement_full_slider_API_in_REST_and_switch_client_to_it Commit: d6131ca426bee6e8aa9819a377bb82345fc97b56 Parents: e519fbc Author: Steve Loughran <ste...@apache.org> Authored: Mon Jun 23 13:41:18 2014 -0700 Committer: Steve Loughran <ste...@apache.org> Committed: Mon Jun 23 13:41:18 2014 -0700 ---------------------------------------------------------------------- slider-assembly/src/main/scripts/slider.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/d6131ca4/slider-assembly/src/main/scripts/slider.py ---------------------------------------------------------------------- diff --git a/slider-assembly/src/main/scripts/slider.py b/slider-assembly/src/main/scripts/slider.py index f154210..d5891ed 100644 --- a/slider-assembly/src/main/scripts/slider.py +++ b/slider-assembly/src/main/scripts/slider.py @@ -15,8 +15,14 @@ # 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. +import sys +import subprocess # Slider main method - +def main(): + + if __name__ == '__main__': - print "slider python script" \ No newline at end of file + print "slider python script" + rv = main() + sys.exit(rv)