8.1.9.1 Folder::GetParent

It is recommended that you switch to the originpro package. PyOrigin is primarily for users who need to work with Origin version prior to 2021.


Description

Get the Parent folder

Syntax

 GetParent()

Parameters

Return

The Parent folder

Examples

EX1

import PyOrigin
Folder=PyOrigin.ActiveFolder()
print('The name of the parent folder is %s' % Folder.GetParent().GetName())