8.2.16 GetPath

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 path of the Origin file

Syntax

GetPath(nPathType = PATHTYPE_PROJECT)

Parameters

nPathType = PATHTYPE_PROJECT
0:PATHTYPE_PROJECT (ProjectEvents.OGS path)
2:PATHTYPE_USER (User Files Folder path)
3:PATHTYPE_GROUP (Origin Group Folder path)
4:PATHTYPE_SYSTEM (License folder path)
7:PATHTYPE_SYSTEMP (Application Data Path)

Return

Returns the full folder path as a string

Examples

EX1

import PyOrigin
UFFpath=PyOrigin.GetPath(2)
print(UFFpath)  #output the path of the User File Folder