395N/A@echo off
395N/Arem
395N/Arem CDDL HEADER START
395N/Arem
395N/Arem The contents of this file are subject to the terms of the
395N/Arem Common Development and Distribution License (the "License").
395N/Arem You may not use this file except in compliance with the License.
395N/Arem
395N/Arem You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
395N/Arem or http://www.opensolaris.org/os/licensing.
395N/Arem See the License for the specific language governing permissions
395N/Arem and limitations under the License.
395N/Arem
395N/Arem When distributing Covered Code, include this CDDL HEADER in each
395N/Arem file and include the License file at usr/src/OPENSOLARIS.LICENSE.
395N/Arem If applicable, add the following below this CDDL HEADER, with the
395N/Arem fields enclosed by brackets "[]" replaced with your own identifying
395N/Arem information: Portions Copyright [yyyy] [name of copyright owner]
395N/Arem
395N/Arem CDDL HEADER END
395N/Arem
3177N/Arem Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
395N/Arem
395N/A
395N/Asetlocal
395N/Aset CMDSCRIPT=pull.py
395N/Aset MY_HOME=%~dp0
395N/Aset MY_IPS_BASE=%MY_HOME%\..\..
3177N/Aset PYTHONPATH=%PYTHONPATH%;%MY_IPS_BASE%\usr\lib\python2.7\vendor-packages
395N/Aset MY_BASE=%MY_HOME%\..\..\..
395N/Aset PATH=%MY_BASE%\python;%PATH%
395N/Aset PYTHONUNBUFFERED=yes
395N/A
395N/Arem
395N/Arem find python.[exe/bat/cmd] on the %PATH%
395N/Arem
395N/Afor %%i in (cmd bat exe) do (
395N/A for %%j in (python.%%i) do (
395N/A set PYEXE="%%~$PATH:j"
395N/A if not [%PYEXE%]==[""] (
395N/A %PYEXE% %MY_HOME%\%CMDSCRIPT% %*
395N/A goto :EOF
395N/A )
395N/A )
395N/A)
395N/A
395N/Arem If we didn't find it above, try to invoke it using the
395N/Arem application associated with the python file extension (.py)
395N/Arem
395N/A"%MY_HOME%\%CMDSCRIPT%" %*
395N/A
395N/A