Changeset 79198 in vbox
- Timestamp:
- Jun 18, 2019 8:44:46 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/testfileset.py
r79193 r79198 412 412 """ 413 413 414 # We only need to flip DOS slashes to unix ones, since windows & OS/2 can handle unix slashes. 415 fDosToUnix = self.fDosStyle and os.path.sep != '\\'; 416 414 417 # The directories: 415 418 for oDir in self.aoDirs: 416 419 sPath = oDir.sPath; 417 420 if sAltBase: 418 sPath = sAltBase + sPath[len(self.sBasePath):]; 421 if fDosToUnix: 422 sPath = sAltBase + sPath[len(self.sBasePath):].replace('\\', os.path.sep); 423 else: 424 sPath = sAltBase + sPath[len(self.sBasePath):]; 425 elif fDosToUnix: 426 sPath = sPath.replace('\\', os.path.sep); 419 427 420 428 try: … … 427 435 sPath = oFile.sPath; 428 436 if sAltBase: 429 sPath = sAltBase + sPath[len(self.sBasePath):]; 437 if fDosToUnix: 438 sPath = sAltBase + sPath[len(self.sBasePath):].replace('\\', os.path.sep); 439 else: 440 sPath = sAltBase + sPath[len(self.sBasePath):]; 441 elif fDosToUnix: 442 sPath = sPath.replace('\\', os.path.sep); 430 443 431 444 try:
Note:
See TracChangeset
for help on using the changeset viewer.