Skip to content

Commit 38769e6

Browse files
committed
Fix DLL cache filename on POSIX hosts
1 parent 36b45ef commit 38769e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qiling/loader/pe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ class QlPeCacheEntry(NamedTuple):
3131
class QlPeCache:
3232
@staticmethod
3333
def cache_filename(path: str) -> str:
34-
dirname, basename = ntpath.split(path)
34+
dirname, basename = os.path.split(path)
3535

3636
# canonicalize basename while preserving the path
37-
path = ntpath.join(dirname, basename.casefold())
37+
path = os.path.join(dirname, basename.casefold())
3838

3939
return f'{path}.cache2'
4040

0 commit comments

Comments
 (0)