Skip to content

Commit a07fbf2

Browse files
committed
Fix issue when exporting .xnb files
FileNotFoundError: [Errno 2] No such file or directory: 'Fx\\textures\\3d\\AlectoRage.xnb'
1 parent 5c8b7a3 commit a07fbf2

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

DEV.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
python -m build --wheel
22
python setup.py bdist_wheel
33

4-
pip install .\dist\deppth2-0.1.6.0-py3-none-any.whl
4+
pip install .\dist\deppth2-0.1.6.1-py3-none-any.whl

deppth2/deppth2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Top-level API exposure of package actions"""
22

3-
__version__ = "0.1.6.0"
3+
__version__ = "0.1.6.1"
44

55
import os
66
import sys

deppth2/entries.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ def extract(self, target, **kwargs):
212212
def _export(self, path):
213213
if os.path.splitext(path)[1] != '.xnb':
214214
return super()._export(path)
215+
216+
os.makedirs(os.path.dirname(path), exist_ok=True)
215217

216218
with open(path, 'wb') as f:
217219
f.write(self.data)

0 commit comments

Comments
 (0)