Oct-20-2018, 11:11 AM
(Oct-20-2018, 10:22 AM)alinaveed786 Wrote: thanks, it worked. Moreover, I installed the plumbum module and executed the code but got below error
Traceback (most recent call last): File "/u02/scripts/Patching/Test.py", line 8, in <module> local.env['PATH'] = "{ohome}/bin:{ohome}/OPatch:{path}".format(ohome=ORACLE_HOME, path=local.env[PATH]) NameError: name 'PATH' is not defined
The source of you exception (posting code with lines broken to fit screen may be a good idea)
path=local.env[PATH]
Test everything in a Python shell (iPython, Azure Notebook, etc.)
- Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
- Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
- You posted a claim that something you did not test works? Be prepared to eat your hat.