Revert "fix windows os error"

This reverts commit 2a8925455a.
This commit is contained in:
leminlimez
2025-04-04 20:42:05 -04:00
parent 2a8925455a
commit a14d698ced
3 changed files with 6 additions and 16 deletions

View File

@@ -9,13 +9,4 @@ def fix_windows_path(dos_path: str, encoding=None):
return u"\\\\?\\UNC\\" + path[2:]
return u"\\\\?\\" + path
else:
return dos_path
def windows_join_path(og_path: str, join: str):
if os.name == 'nt':
final_path = og_path
for dir in join.split('/'):
final_path = os.path.join(final_path, dir)
return final_path
else:
return os.path.join(og_path, join)
return dos_path