__init__.py 677 Bytes
Newer Older
1
2
from gcis_client import GcisClient
from webform_client import WebformClient
3
from nca3_client import Nca3Client
4
5

from os.path import expanduser, exists
6
from os import makedirs, getenv
7
8
9
10
11
12
13
14


def default_image_dir():
    image_dir = expanduser('~/.gcis-py-client/images/')
    if not exists(image_dir):
        makedirs(image_dir)
    return image_dir

15
16
17
18
19
20
21
22
#Magic environment variables
gcis_prod_auth = (getenv('GCIS_PROD_USER'), getenv('GCIS_PROD_KEY'))
gcis_stage_auth = (getenv('GCIS_STAGE_USER'), getenv('GCIS_STAGE_KEY'))
gcis_dev_auth = (getenv('GCIS_DEV_USER'), getenv('GCIS_DEV_KEY'))

gcis_auth = (getenv('GCIS_USER'), getenv('GCIS_KEY'))

webform_token = getenv('WEBFORM_TOKEN')