2,732
edits
Red Leader (talk | contribs) (Doc rename()) |
Red Leader (talk | contribs) (Start realpath doc) |
||
Line 167: | Line 167: | ||
}} | }} | ||
==== realpath ==== | ==== realpath ==== | ||
{{Nasal doc | |||
|syntax = os.path.realpath; | |||
|text = A variable that is a string and gives the full file path. This should only be used when the path is an absolute path. | |||
|example1 = var path = os.path.new(getprop("/sim/fg-home")); | |||
print(path.realpath); # prints the absolute path of $FG_HOME | |||
}} | |||
==== file ==== | ==== file ==== | ||
==== dir ==== | ==== dir ==== |