I am writing many small python scripts and keeping in one directory and i am calling them in different scripts
Below is the script and it is calling function that has saved in another director acc_repo:
from acc_repo import col
import logging
import getpass
col.col()
dc = raw_input(OKGREEN + "Choose DataCenter:" + ENDC)
File "ucs_qa.py", line 21, in <module>
dc = raw_input(OKGREEN + "Choose DataCenter:" + ENDC)
NameError: name 'OKGREEN' is not defined
function that is saved in acc_repo directory
def col ():
global HEADER
global OKBLUE
global OKGREEN
global WARNING
global FAIL
global ENDC
global BOLD
global UNDERLINE
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
How do i fix the error? Is i am in right track in terms handling many small python scripts. Please advice and help to fix the issue