File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 7171 " from nbdev.showdoc import *"
7272 ]
7373 },
74+ {
75+ "cell_type" : " code" ,
76+ "execution_count" : null ,
77+ "id" : " 97a87295" ,
78+ "metadata" : {},
79+ "outputs" : [],
80+ "source" : [
81+ " import os\n " ,
82+ " from pathlib import Path\n " ,
83+ " from fastcore.utils import find_file_parents"
84+ ]
85+ },
86+ {
87+ "cell_type" : " code" ,
88+ "execution_count" : null ,
89+ "id" : " 0a197456" ,
90+ "metadata" : {},
91+ "outputs" : [],
92+ "source" : [
93+ " _cwd = Path.cwd()\n " ,
94+ " _pars = find_file_parents(\" pyproject.toml\" )\n " ,
95+ " print(\" cwd:\" , _cwd)\n " ,
96+ " print(\" find_file_parents result:\" , _pars)\n " ,
97+ " print(\" cachy.jsonl exists in _cwd:\" , (_cwd /\" cachy.jsonl\" ).exists())\n " ,
98+ " print(\" cachy.jsonl exists in _pars:\" , (_pars /\" cachy.jsonl\" ).exists())"
99+ ]
100+ },
74101 {
75102 "cell_type" : " code" ,
76103 "execution_count" : null ,
You can’t perform that action at this time.
0 commit comments