예제 #1
0
def is_local():
    file = os.path.abspath(__file__).replace("\\", "/").lower()
    try:
        from pyquickhelper.pycode.setup_helper import available_commands_list
    except ImportError:
        return False
    return available_commands_list(sys.argv)
예제 #2
0
파일: setup.py 프로젝트: btrspg/pyensae
def is_local():
    file = os.path.abspath(__file__).replace("\\", "/").lower()
    if "/temp/" in file and "pip-" in file:
        return False
    from pyquickhelper.pycode.setup_helper import available_commands_list
    if "update_grammars" in sys.argv:
        return True
    return available_commands_list(sys.argv)
예제 #3
0
파일: setup.py 프로젝트: sdpython/jupytalk
def is_local():
    if "moviepy-setup" in sys.argv:
        return True
    file = os.path.abspath(__file__).replace("\\", "/").lower()
    if "/temp/" in file and "pip-" in file:
        return False
    from pyquickhelper.pycode.setup_helper import available_commands_list
    return available_commands_list(sys.argv)
예제 #4
0
 def test_commands(self):
     assert available_commands_list(["copy27"])
     assert not available_commands_list(["copy27**"])