Esempio n. 1
0
    def __init__(self, url, token, local_download_dir=None):
        self.base_url = url

        #If token was not provided, obtain it
        if token is None:
            token = get_credentials()

        self.token = token

        if local_download_dir:
            self.local_download_dir = local_download_dir
        else:
            from gcis_clients import default_image_dir
            self.local_download_dir = default_image_dir()
Esempio n. 2
0
    def __init__(self, url, token, local_image_dir=None, remote_dir='/system/files/'):
        self.base_url = url

        #If token was not provided, obtain it
        if token is None:
            token = get_credentials()

        self.token = token

        if local_image_dir:
            self.images_dir = local_image_dir
        else:
            from gcis_clients import default_image_dir
            self.images_dir = default_image_dir()
        self.remote_image_dir = remote_dir
Esempio n. 3
0
    def __init__(self, url, token, local_image_dir=None, remote_dir='/system/files/'):
        self.base_url = url

        #If token was not provided, obtain it
        if token is None:
            token = get_credentials()

        self.token = token

        if local_image_dir:
            self.images_dir = local_image_dir
        else:
            from gcis_clients import default_image_dir
            self.images_dir = default_image_dir()
        self.remote_image_dir = remote_dir