Skip to content

Commit

Permalink
Fix exec invocation for training scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sbesson committed Jan 23, 2024
1 parent 06081f1 commit 5d1f4d4
Showing 1 changed file with 30 additions and 23 deletions.
53 changes: 30 additions & 23 deletions examples/Training/python/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,33 @@

if __name__ == "__main__":
print("Running training suite")
exec(os.path.join(training_dir, 'Bulk_Shapes.py'))
exec(os.path.join(training_dir, 'Connect_To_OMERO.py'))
exec(os.path.join(training_dir, 'Create_Image.py'))
exec(os.path.join(training_dir, 'Delete.py'))
exec(os.path.join(training_dir, 'Filesets.py'))
exec(os.path.join(training_dir, 'Groups_Permissions.py'))
exec(os.path.join(training_dir, 'Metadata.py'))
exec(os.path.join(training_dir, 'Raw_Data_Access.py'))
exec(os.path.join(training_dir, 'Read_Data.py'))
exec(os.path.join(training_dir, 'Render_Images.py'))
exec(os.path.join(training_dir, 'ROIs.py'))
exec(os.path.join(training_dir, 'Tables.py'))
exec(os.path.join(training_dir, 'Write_Data.py'))
exec(os.path.join(training_dir,
'Advanced/Create_Image_advanced.py'))
exec(os.path.join(training_dir, 'Advanced/Raw_Data_advanced.py'))
exec(os.path.join(training_dir, 'Advanced/Read_Data_advanced.py'))
exec(os.path.join(training_dir, 'Advanced/Write_data_advanced.py'))
exec(os.path.join(training_dir, 'Task_Scripts/Raw_Data2.py'))
exec(os.path.join(training_dir, 'Task_Scripts/Raw_Data_Task.py'))
exec(os.path.join(training_dir, 'Task_Scripts/Write_Data_4.py'))
exec(os.path.join(training_dir, 'Task_Scripts/Write_Data_3.py'))
exec(os.path.join(training_dir, 'Json_Api/Login.py'))
exec(open(os.path.join(training_dir, 'Bulk_Shapes.py')).read())
exec(open(os.path.join(training_dir, 'Connect_To_OMERO.py')).read())
exec(open(os.path.join(training_dir, 'Create_Image.py')).read())
exec(open(os.path.join(training_dir, 'Delete.py')).read())
exec(open(os.path.join(training_dir, 'Filesets.py')).read())
exec(open(os.path.join(training_dir, 'Groups_Permissions.py')).read())
exec(open(os.path.join(training_dir, 'Metadata.py')).read())
exec(open(os.path.join(training_dir, 'Raw_Data_Access.py')).read())
exec(open(os.path.join(training_dir, 'Read_Data.py')).read())
exec(open(os.path.join(training_dir, 'Render_Images.py')).read())
exec(open(os.path.join(training_dir, 'ROIs.py')).read())
exec(open(os.path.join(training_dir, 'Tables.py')).read())
exec(open(os.path.join(training_dir, 'Write_Data.py')).read())
exec(open(os.path.join(training_dir,
'Advanced/Create_Image_advanced.py')).read())
exec(open(os.path.join(training_dir,
'Advanced/Raw_Data_advanced.py')).read())
exec(open(os.path.join(training_dir,
'Advanced/Read_Data_advanced.py')).read())
exec(open(os.path.join(training_dir,
'Advanced/Write_data_advanced.py')).read())
exec(open(os.path.join(training_dir,
'Task_Scripts/Raw_Data2.py')).read())
exec(open(os.path.join(training_dir,
'Task_Scripts/Raw_Data_Task.py')).read())
exec(open(os.path.join(training_dir,
'Task_Scripts/Write_Data_4.py')).read())
exec(open(os.path.join(training_dir,
'Task_Scripts/Write_Data_3.py')).read())
exec(open(os.path.join(training_dir, 'Json_Api/Login.py')).read())

0 comments on commit 5d1f4d4

Please sign in to comment.