Skip to content

Commit 06dd0a5

Browse files
Update src/ansys/tools/common/example_download.py
Co-authored-by: Roberto Pastor Muela <[email protected]>
1 parent c1a914d commit 06dd0a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ansys/tools/common/example_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def _retrieve_data(self, url: str, filename: str, dest: str = None, force: bool
190190
if dest is None:
191191
dest = tempfile.gettempdir() # Use system temp directory if no destination is provided
192192
local_path = Path(dest) / Path(filename).name
193-
if not force and Path.is_file(Path(local_path)):
193+
if not force and Path(local_path).is_file():
194194
return local_path
195195
try:
196196
local_path, _ = urllib.request.urlretrieve(url, filename=local_path)

0 commit comments

Comments
 (0)