Skip to content

Commit 861e207

Browse files
egormangaK0lb3
authored andcommitted
Fixed loading assets from current directory.
1 parent f72e5df commit 861e207

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

UnityPy/environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self, *args: FileSourceType, fs: Optional[AbstractFileSystem] = Non
5656
if ntpath.splitext(arg)[-1] in [".apk", ".zip"]:
5757
self.load_zip_file(arg)
5858
else:
59-
self.path = ntpath.dirname(arg)
59+
self.path = ntpath.dirname(arg) or ntpath.curdir
6060
if reSplit.match(arg):
6161
self.load_files([arg])
6262
else:

0 commit comments

Comments
 (0)