mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Improve CI command for Windows OS
This commit is contained in:
@ -19,6 +19,7 @@ from __future__ import absolute_import
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
from os.path import basename, commonprefix, isdir, isfile, join, realpath, sep
|
from os.path import basename, commonprefix, isdir, isfile, join, realpath, sep
|
||||||
|
from platform import system
|
||||||
|
|
||||||
import SCons.Scanner
|
import SCons.Scanner
|
||||||
|
|
||||||
@ -94,7 +95,12 @@ class LibBuilderBase(object): # pylint: disable=too-many-instance-attributes
|
|||||||
return "%s(%r)" % (self.__class__, self.path)
|
return "%s(%r)" % (self.__class__, self.path)
|
||||||
|
|
||||||
def __contains__(self, path):
|
def __contains__(self, path):
|
||||||
return commonprefix((self.path + sep, path)) == self.path + sep
|
p1 = self.path
|
||||||
|
p2 = path
|
||||||
|
if system() == "Windows":
|
||||||
|
p1 = p1.lower()
|
||||||
|
p2 = p2.lower()
|
||||||
|
return commonprefix((p1 + sep, p2)) == p1 + sep
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
|
Reference in New Issue
Block a user