def select_file(*args, **kwargs):
    """ Displays a file selection dialog and returns the file selected """
    """ eg. defaultextension='.csv', filetypes=[('VR Log (.csv)', '.csv')],
        title='Save log for this session', initialdir='C:/VR/Results',
        initialfile=self.start_datetime_str """
    import tkinter
    from tkinter import filedialog
    root = tkinter.Tk()
    root.withdraw()
    file = filedialog.asksaveasfilename(*args, parent=root, **kwargs)
    return str(file)
