he URI to the currently running
Dart script.</p>
<pre class="language-dart"><code>import 'dart:io' show Platform;

void main() {
  // Get the URI of the script being run.
  var uri = Platform.script;
  // Convert the URI to a path.
  var path = uri.toFilePath();
}
</code></pre>
<h2 id="get-the-value-of-an-environment-variable">Get the value of an environment variable</h2>
<p>The <a href="dart-io/Platform/environment.html">environment</a> getter returns a the names and values of environment
variables in a <a