ya2 · news · projects · code · about

fix: windows builds
authorFlavio Calva <f.calva@gmail.com>
Sat, 8 Apr 2023 07:41:32 +0000 (09:41 +0200)
committerFlavio Calva <f.calva@gmail.com>
Sat, 8 Apr 2023 07:41:32 +0000 (09:41 +0200)
ya2/utils/functional.py

index 621331d2ee38ae3c5712bb902524ad2f7b6752b4..76f5a7f7657ac9b1794202391e507e9ff3a52f67 100644 (file)
@@ -98,8 +98,12 @@ class FunctionalTest:
 
     def __set_path_wine(self):
         home = str(Path.home())
-        if self.__path.startswith('/c/users/') and exists(home + '/.wine/'):
-            self.__path = home + '/.wine/drive_' + self.__path[1:]
+        p = self.__path[1] + ':' + self.__path[2:].replace('/', '\\')
+        info(f"__set_path_wine: {self.__path} {home} {p}")
+        #if self.__path.startswith('/c/users/') and exists(home + '/.wine/'):
+        #    self.__path = home + '/.wine/drive_' + self.__path[1:]
+        if self.__path.startswith('/c/users/'):
+            self.__path = p
 
     def __set_path_references(self):
         if self.__creating_references: