Skip to content

Commit 3bda44b

Browse files
committed
More windows compatability changes
1 parent 3d7d45d commit 3bda44b

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"pack": {
3-
"pack-format": 7,
3+
"pack_format": 7,
44
"description": "Example pack used for debugging"
55
}
66
}

__pycache__/main.cpython-38.pyc

0 Bytes
Binary file not shown.

__pycache__/tags.cpython-38.pyc

151 Bytes
Binary file not shown.

tags.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,11 @@ def inner(x):
269269
argString = main.groups(line, [["(",")"]], False)[0]
270270
result = result[:min(len(result),int(numberCast(argString)))]
271271

272-
name_split = name.split("/")
272+
name_split = None
273+
if sys.platform == "win32":
274+
name_split = name.split("\\")
275+
else:
276+
name_split = name.split("/")
273277

274278
if len(name_split) > 1:
275279
os.makedirs(f".generated/packs/{packName}/data/{packId}/tags/{t}/{'/'.join(name_split[:len(name_split)-1])}", exist_ok=True)

0 commit comments

Comments
 (0)