Skip to content

Commit 63b760a

Browse files
committed
Remove os.mknod in deepmd/comp.py
1 parent 3004d49 commit 63b760a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dpdata/deepmd/comp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,7 @@ def dump(folder,
110110
except OSError:
111111
pass
112112
if data.get("nopbc", False):
113-
os.mknod(os.path.join(folder, "nopbc"))
113+
#os.mknod(os.path.join(folder, "nopbc"))
114+
with open(os.path.join(folder, "nopbc"), "w") as fw_nopbc:
115+
fw_nopbc.write("")
114116

0 commit comments

Comments
 (0)