mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-20 05:25:04 +08:00
[tools] format python code
This commit is contained in:

committed by
Man, Jianting (Meco)

parent
af82606dd3
commit
eafcdd0bc2
@@ -139,7 +139,7 @@ def PrefixPath(prefix, path):
|
||||
|
||||
if path.startswith(prefix):
|
||||
return True
|
||||
|
||||
|
||||
return False
|
||||
|
||||
def ListMap(l):
|
||||
@@ -197,7 +197,7 @@ def ProjectInfo(env):
|
||||
|
||||
# process FILES and DIRS
|
||||
if len(FILES):
|
||||
# use absolute path
|
||||
# use absolute path
|
||||
for i in range(len(FILES)):
|
||||
FILES[i] = os.path.abspath(str(FILES[i]))
|
||||
DIRS.append(os.path.dirname(FILES[i]))
|
||||
@@ -211,7 +211,7 @@ def ProjectInfo(env):
|
||||
|
||||
# process CPPPATH
|
||||
if len(CPPPATH):
|
||||
# use absolute path
|
||||
# use absolute path
|
||||
for i in range(len(CPPPATH)):
|
||||
CPPPATH[i] = os.path.abspath(CPPPATH[i])
|
||||
|
||||
|
Reference in New Issue
Block a user