20,741
edits
m (→Common paths) |
|||
Line 16: | Line 16: | ||
== Common paths == | == Common paths == | ||
You can determine the location of your <code>$FG_HOME</code> by using the [[property browser]] and checking the value of <code>/sim/fg-home</code>, but the usual paths are shown below. | You can determine the location of your <code>$FG_HOME</code> by using the [[property browser]] and checking the value of <code>/sim/fg-home</code>, but the usual paths are shown below. | ||
You can also use the [[Nasal Console]] to print out $FG_HOME: | |||
<syntaxhighlight lang="nasal"> | |||
var path = getprop("/sim/fg-home"); | |||
print("Your $FG_HOME is at: ", path); | |||
</syntaxhighlight> | |||
The <code>/sim/</code> property subtree is also the place where you can find other folders, such as <code>fg-root</code>, <code>fg-scenery</code> and the current working directory (<code>fg-current</code>). | The <code>/sim/</code> property subtree is also the place where you can find other folders, such as <code>fg-root</code>, <code>fg-scenery</code> and the current working directory (<code>fg-current</code>). |