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)
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)
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)
def test_commands(self): assert available_commands_list(["copy27"]) assert not available_commands_list(["copy27**"])