Skip to content

Commit a659f04

Browse files
authored
Merge pull request #2330 from misonyo/dev
[bsp/stm32]change str(Dir('#')) to GetCurrentDir()
2 parents 65b7f43 + 700ce3a commit a659f04

File tree

26 files changed

+52
-26
lines changed

26 files changed

+52
-26
lines changed

bsp/stm32/libraries/templates/stm32f0xx/SConscript

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# for module compiling
22
import os
33
Import('RTT_ROOT')
4+
from building import *
45

5-
cwd = str(Dir('#'))
6+
cwd = GetCurrentDir()
67
objs = []
78
list = os.listdir(cwd)
89

bsp/stm32/libraries/templates/stm32f10x/SConscript

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# for module compiling
22
import os
33
Import('RTT_ROOT')
4+
from building import *
45

5-
cwd = str(Dir('#'))
6+
cwd = GetCurrentDir()
67
objs = []
78
list = os.listdir(cwd)
89

bsp/stm32/libraries/templates/stm32f4xx/SConscript

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# for module compiling
22
import os
33
Import('RTT_ROOT')
4+
from building import *
45

5-
cwd = str(Dir('#'))
6+
cwd = GetCurrentDir()
67
objs = []
78
list = os.listdir(cwd)
89

bsp/stm32/libraries/templates/stm32f7xx/SConscript

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# for module compiling
22
import os
33
Import('RTT_ROOT')
4+
from building import *
45

5-
cwd = str(Dir('#'))
6+
cwd = GetCurrentDir()
67
objs = []
78
list = os.listdir(cwd)
89

bsp/stm32/libraries/templates/stm32l4xx/SConscript

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# for module compiling
22
import os
33
Import('RTT_ROOT')
4+
from building import *
45

5-
cwd = str(Dir('#'))
6+
cwd = GetCurrentDir()
67
objs = []
78
list = os.listdir(cwd)
89

bsp/stm32/stm32f091-st-nucleo/SConscript

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# for module compiling
22
import os
33
Import('RTT_ROOT')
4+
from building import *
45

5-
cwd = str(Dir('#'))
6+
cwd = GetCurrentDir()
67
objs = []
78
list = os.listdir(cwd)
89

bsp/stm32/stm32f103-atk-nano/SConscript

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# for module compiling
22
import os
33
Import('RTT_ROOT')
4+
from building import *
45

5-
cwd = str(Dir('#'))
6+
cwd = GetCurrentDir()
67
objs = []
78
list = os.listdir(cwd)
89

bsp/stm32/stm32f103-dofly-lyc8/SConscript

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# for module compiling
22
import os
33
Import('RTT_ROOT')
4+
from building import *
45

5-
cwd = str(Dir('#'))
6+
cwd = GetCurrentDir()
67
objs = []
78
list = os.listdir(cwd)
89

bsp/stm32/stm32f103-fire-arbitrary/SConscript

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# for module compiling
22
import os
33
Import('RTT_ROOT')
4+
from building import *
45

5-
cwd = str(Dir('#'))
6+
cwd = GetCurrentDir()
67
objs = []
78
list = os.listdir(cwd)
89

bsp/stm32/stm32f103-hw100k-ibox/SConscript

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# for module compiling
22
import os
33
Import('RTT_ROOT')
4+
from building import *
45

5-
cwd = str(Dir('#'))
6+
cwd = GetCurrentDir()
67
objs = []
78
list = os.listdir(cwd)
89

0 commit comments

Comments
 (0)