Skip to content

Commit 4231112

Browse files
authored
fix dir error (#2660)
1 parent a576004 commit 4231112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddlenlp/utils/env.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _get_ppnlp_home():
4343
def _get_sub_home(directory, parent_home=_get_ppnlp_home()):
4444
home = os.path.join(parent_home, directory)
4545
if not os.path.exists(home):
46-
os.makedirs(home)
46+
os.makedirs(home, exist_ok=True)
4747
return home
4848

4949

0 commit comments

Comments
 (0)