Closed dkirkby closed 8 years ago
Change the code above to:
# Constructor args take precendence over constructor args.
self.sas_path = os.getenv('BOSS_SAS_PATH') if sas_path is None else sas_path
if self.sas_path is None:
self.sas_path = Finder.default_sas_path
The
boss.path.Finder
andboss.remote.Mirror
constructors have optional parameters that are supposed to override the corresponding environment variables. However, these are coded with incorrect logic, for example:Note that the comment is actually correct, but disagrees with the docstring and is not the behavior we want.