mirror of
https://github.com/clearml/clearml
synced 2025-06-26 18:16:07 +00:00
Fix http:// throws OSError in Windows (change repo dir search from pathlib2 to os, #463)
This commit is contained in:
parent
8c9c0eacc7
commit
d0e4e0be64
@ -618,7 +618,7 @@ if __name__ == '__main__':
|
|||||||
function_name=function_name,
|
function_name=function_name,
|
||||||
function_return=function_return)
|
function_return=function_return)
|
||||||
|
|
||||||
temp_dir = repo if repo and Path(repo).is_dir() else None
|
temp_dir = repo if repo and os.path.isdir(repo) else None
|
||||||
with tempfile.NamedTemporaryFile('w', suffix='.py', dir=temp_dir) as temp_file:
|
with tempfile.NamedTemporaryFile('w', suffix='.py', dir=temp_dir) as temp_file:
|
||||||
temp_file.write(task_template)
|
temp_file.write(task_template)
|
||||||
temp_file.flush()
|
temp_file.flush()
|
||||||
|
Loading…
Reference in New Issue
Block a user