File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -144,12 +144,16 @@ def write_to_python_file(cls, path: str) -> None:
144144 """Creates a file similar to PyTorch core's `torch/version.py`."""
145145
146146 print (f"Writing version.py to { path } , cwd: { os .getcwd ()} " , file = sys .stderr )
147+ print (f"WD files: { list (os .listdir (os .getcwd ()))} " )
147148
148- path1 = os .path .dirname (path )
149- path2 = os .path .dirname (path1 )
149+ try :
150+ path1 = os .path .dirname (path )
151+ path2 = os .path .dirname (path1 )
150152
151- print (f"Files at { path2 } : { list (os .listdir (path2 ))} " , file = sys .stderr )
152- print (f"Files at { path1 } : { list (os .listdir (path1 ))} " , file = sys .stderr )
153+ print (f"Files at { path2 } : { list (os .listdir (path2 ))} " , file = sys .stderr )
154+ print (f"Files at { path1 } : { list (os .listdir (path1 ))} " , file = sys .stderr )
155+ finally :
156+ pass
153157
154158 lines = [
155159 "from typing import Optional" ,
You can’t perform that action at this time.
0 commit comments