From 736e69c8e0a4b3adb9b0c400ae9a2a4c8a85d783 Mon Sep 17 00:00:00 2001 From: Egor Vorontsov Date: Sun, 8 Feb 2026 05:16:00 +0300 Subject: [PATCH] Fixed loading assets from current directory. --- UnityPy/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnityPy/environment.py b/UnityPy/environment.py index b287248a..2244a730 100644 --- a/UnityPy/environment.py +++ b/UnityPy/environment.py @@ -56,7 +56,7 @@ def __init__(self, *args: FileSourceType, fs: Optional[AbstractFileSystem] = Non if ntpath.splitext(arg)[-1] in [".apk", ".zip"]: self.load_zip_file(arg) else: - self.path = ntpath.dirname(arg) + self.path = ntpath.dirname(arg) or ntpath.curdir if reSplit.match(arg): self.load_files([arg]) else: