Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Difference between revisions of "Nasal library/os.path"

From FlightGear wiki
Jump to: navigation, search
(Initial create and save)
 
(Class)
Line 6: Line 6:
 
== Class ==
 
== Class ==
 
=== os.path ===
 
=== os.path ===
 +
{{Nasal doc
 +
|mode = class
 +
|text = A pseudo-class (actually a Nasal ghost). This is the main class that stores and allows manipulation of file paths. This is also integrated into the <code>os.path</code>.
 +
}}
 
==== new() ====
 
==== new() ====
  

Revision as of 15:45, 21 January 2018

This page contains documentation for the os.path namespace in Nasal. This namespace implements tools (from SGPath) for manipulating file paths. Everything in the geo namespace is sourced from flightgear/src/Scripting/NasalSGPath.cxx

Tip  Copy & paste the examples into your Nasal Console and execute them to see what they do.

Class

os.path

A pseudo-class (actually a Nasal ghost). This is the main class that stores and allows manipulation of file paths. This is also integrated into the os.path.

new()

Functions

desktop()

standardLocation()