These are chat archives for AnyBody-Research-Group/AnyPyTools

19th
Dec 2017
Sebastian Skejø
@sebastianskejoe
Dec 19 2017 11:49

Hi again.

I'm trying to batch process a large number of files in the following way:

trials = os.listdir(path)
macrolist = []
for trial in trials:
    mc = [
        Load(path+trial),
        OperationRun('Main.RunApplication')
    ]

    macrolist.append(mc)

app.start_macro(macrolist)

When I run the script all macros results in errors and I get the following error file:

########### MACRO #############
load "<PATH_IS_HERE>"
operation Main.RunApplication
run

######### OUTPUT LOG ##########

However, if I put line 2-4 in it's own file and run that file from the AnyBody Console, it processes it just fine. Any ideas why?

Sebastian Skejø
@sebastianskejoe
Dec 19 2017 12:12
Fixed it. For some reason the path to the anybody console was empty in the registry, so I fixed it by providing anybodycon_path in AnyPyProcess. Pretty sure that this happened as part of an upgrade to AnyBody 7.1, but not sure whether it's just my install. Any way, will open an issue to propose checking if the file actually exists.