Win:os.sep in Module.name/DiskBackend.library_path
This commit is contained in:
parent
d19e4745df
commit
c8ff0551c5
2 changed files with 3 additions and 3 deletions
|
|
@ -276,9 +276,9 @@ class Module:
|
|||
print(url.scheme)
|
||||
|
||||
print(f"url.path: {url.path}")
|
||||
if url.path.endswith("/"):
|
||||
if url.path.endswith("/") if isinstance(backend, WebBackend) else self.path.endswith(os.sep):
|
||||
self.file = None
|
||||
self.name = url.path.split("/")[-2]
|
||||
self.name = self.path.split("/" if isinstance(backend, WebBackend) else os.sep)[-2]
|
||||
else:
|
||||
self.file = os.path.basename(url.path)
|
||||
self.name = (
|
||||
|
|
|
|||
|
|
@ -612,7 +612,7 @@ class DiskBackend(Backend):
|
|||
super().__init__(logger)
|
||||
self.LIB_DIR_PATH = "lib"
|
||||
self.device_location = device_location
|
||||
self.library_path = self.device_location + "/" + self.LIB_DIR_PATH
|
||||
self.library_path = os.path.join(self.device_location, os.sep + self.LIB_DIR_PATH)
|
||||
self.version_info = None
|
||||
if boot_out is not None:
|
||||
self.version_info = self.parse_boot_out_file(boot_out)
|
||||
|
|
|
|||
Loading…
Reference in a new issue