Closed llmpass closed 3 years ago
try this might be helpfull
os.path.abspath(os.path.join(os.path.dirname(file), os.path.pardir))
try this might be helpfull
os.path.abspath(os.path.join(os.path.dirname(file), os.path.pardir))
but this file is still not defined, right?
'file' is the directory of the option.py file. How about trying these solutions? https://stackoverflow.com/questions/16771894/python-nameerror-global-name-file-is-not-defined
'file' is the directory of the option.py file. How about trying these solutions? https://stackoverflow.com/questions/16771894/python-nameerror-global-name-file-is-not-defined
Thank you very much!
Hi,
I got
NameError: name '_file_' is not defined when running through
opt['path']['root'] = osp.abspath(osp.join(_file_, osp.pardir, osp.pardir, osp.pardir))
at codes/options/options.py.
Any suggestions?
yours, Luming