Simple context manager to modify and restore user's OPLS_DIR setting,
if appropriate.
This is really unfortunate and fiddly. We can delete this context
manager once FFLD-1053 is complete.
|
__init__(self,
selected_opls_dir,
opls_ver)
x.__init__(...) initializes x; see help(type(x)) for signature |
|
|
|
__enter__(self)
Modify the OPLS_DIR value in the user's environment, if appropriate |
|
|
|
__exit__(self,
type,
value,
traceback)
Restore the OPLS_DIR value in the user's environment, if appropriate |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|