File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
from os .path import sep , join , exists
3
3
from itertools import groupby
4
4
from xml .etree .ElementTree import Element , tostring
5
- import ntpath
6
5
import re
7
6
import json
8
7
9
8
from tools .arm_pack_manager import Cache
10
9
from tools .targets import TARGET_MAP
11
10
from tools .export .exporters import Exporter , TargetNotSupportedException
11
+ from tools .utils import split_path
12
12
13
13
class fileCMSIS ():
14
14
"""CMSIS file class.
@@ -37,7 +37,8 @@ def __init__(self, target):
37
37
if not target_info :
38
38
raise TargetNotSupportedException ("Target not supported in CMSIS pack" )
39
39
self .url = target_info ['pdsc_file' ]
40
- self .pack_url , self .pack_id = ntpath .split (self .url )
40
+ self .pdsc_url , self .pdsc_id , _ = split_path (self .url )
41
+ self .pack_url , self .pack_id , _ = split_path (target_info ['pack_file' ])
41
42
self .dname = target_info ["_cpu_name" ]
42
43
self .core = target_info ["_core" ]
43
44
self .dfpu = target_info ['processor' ]['fpu' ]
You can’t perform that action at this time.
0 commit comments