Commit 1c39a7dd authored by Olivier Lantsoght's avatar Olivier Lantsoght

[Example] Update python file to generate user files to Python3

parent 8a7376ae
......@@ -46,7 +46,7 @@ for root, dirs, files in os.walk(".", topdown=False):
#print(os.path.join(root, name))
for name in dirs:
if is_mbs_C_project(os.path.join(root, name)):
print "- - - - - - - - - - - - - - - - - - - - - - - -"
print("- - - - - - - - - - - - - - - - - - - - - - - -")
print(os.path.join(root, name))
# find mbs file
mbs_files = glob.glob(os.path.join(root, name, "dataR/*.mbs"))
......@@ -54,9 +54,9 @@ for root, dirs, files in os.walk(".", topdown=False):
# Generate user file for 1st *.mbs in the list
if len(mbs_files)>0:
filename = mbs_files[0]
print "GENERATING user files for "+filename
print("GENERATING user files for "+filename)
subprocess.call([gen_user_app_path, filename])
if len(mbs_files)>1:
for f in mbs_files[1:]:
print "WARNING: ignoring "+filename
print("WARNING: ignoring "+filename)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment