@@ -58,7 +58,7 @@ class Config:
5858
5959 """
6060 Local index of the variables that can be accessed as direct properties (build and
61- runtime). The key is the property that will be read. The value is the environment variables, minus prefix,
61+ runtime). The key is the property that will be read. The value is the environment variables, minus the variable prefix,
6262 that contains the value to look up.
6363 """
6464 _directVariables = {
@@ -97,7 +97,7 @@ class Config:
9797 """
9898 The vendor prefix for all environment variables we care about.
9999 """
100- _envPrefix = ''
100+ _varPrefix = ''
101101
102102 """
103103 The routes definition dict. Only available at runtime.
@@ -125,19 +125,19 @@ class Config:
125125 """
126126 _credentialFormatters = {}
127127
128- def __init__ (self , environment_variables = None , env_prefix = 'PLATFORM_' ):
128+ def __init__ (self , environment_variables = None , var_prefix = 'PLATFORM_' ):
129129 """Constructs a ConfigReader object.
130130
131131 Args:
132132 environment_variables (dict):
133133 The environment variables to read. Defaults to the current environment. Defaults to None.
134- env_prefix (string):
134+ var_prefix (string):
135135 The prefix for environment variables. Defaults to 'PLATFORM_'.
136136
137137 """
138138
139139 self ._environmentVariables = os .environ if environment_variables is None else environment_variables
140- self ._envPrefix = env_prefix
140+ self ._varPrefix = var_prefix
141141
142142 if self ['ROUTES' ]:
143143 routes = self ['ROUTES' ]
@@ -232,7 +232,7 @@ def variable(self, name, default=None):
232232
233233 Note:
234234 Variables prefixed with `env`: can be accessed as normal environment variables. This method will return
235- such a variable by the name with the prefix still included. Generally it's better to access those variables
235+ such a variable by the name with the variable prefix still included. Generally it's better to access those variables
236236 directly.
237237
238238 Args:
@@ -480,15 +480,15 @@ def has_relationship(self, relationship):
480480 return relationship in self ._relationshipsDef
481481
482482 def __getitem__ (self , item ):
483- """Reads an environment variable, taking the prefix into account.
483+ """Reads an environment variable, taking the variable prefix into account.
484484
485485 Args:
486486 item (string):
487487 The variable to read.
488488
489489 """
490490
491- check_name = self ._envPrefix + item .upper ()
491+ check_name = self ._varPrefix + item .upper ()
492492
493493 return self ._environmentVariables .get (check_name )
494494
0 commit comments