-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_bc.py
More file actions
30 lines (20 loc) · 725 Bytes
/
config_bc.py
File metadata and controls
30 lines (20 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# FOR PYTHON 3!!!!
import time
import os
import bcs3util
config = {}
if not bcs3util.isBCConfigured():
bcs3util.createBCConfigDir()
else:
config=bcs3util.loadConfig()
accountid = raw_input("Brightcove API Account ID["+config["bc_account_id"]+"]:")
if accountid != "":
config["bc_account_id"] = accountid
accesskey = raw_input("Brightcove API Access Key["+config["bc_access_key_id"]+"]:")
if accesskey != "":
config["bc_access_key_id"] = accesskey
secretkey = raw_input("Brightcove API secret key["+config["bc_secret_access_key"]+"]:")
if secretkey != "":
config["bc_secret_access_key"] = secretkey
if accountid != "" or accesskey != "" or secretkey != "":
bcs3util.saveConfig(config)