Changing the location of the opensesame-settings.txt file on Android tablet
Hi there,
Is it possible to change the location of the opensesame-settings.txt file within the Android app? I am running two separate experiments in a study, so to make things simpler and easier for the data collectors (who will have limited time), I cloned the app and named the two versions differently for each experiment. I am hoping that all they will need to do is enter the same subject number when they run each experiment. However, because the two versions of the app write to the same settings file, I can't get the separate versions to store and maintain unique paths for the data files. I am trying to avoid the need to have people change the default name of the .csv file for the second experiment (and I'm also afraid they'll forget to do it and overwrite the data from the first experiment).
Does anyone have any suggestions?
Comments
Hi,
There's no way to change the location of
opensesame-settings.txt. What I would do in your case is re-open the logfile within the experiment itself, withlog.open(). That way you can hardcode that, for example, all logfiles for one experiment are stored as/sdcard/logfile-for-exp1-[subject_nr].csv.You can do this by inserting the following code into the prepare phase of an
inline_scriptat the very start of the experiment:See also:
Does that make sense?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Great, thanks for the suggestion! It seems like I should be able to make that work.
Luke