cur_dir

cur_dir

cur_dir

Function

Returns the directory where the current source code file is located.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
completeBoolNofalseReturns the complete path when true; otherwise returns the display path.

Return value

TypeDescription
StringReturns the current source code directory path.

Example

Notes

  • When called in an include file, returns the directory where the include file is located.