I need to find out the directory in which the Dart script (which is currently running) is located. How do I go about doing this?
Previously, this was possible through new Options().script
, but that class is no more. The arguments list from main(args)
doesn't help, since it only contains arguments, not the executed Dart file (at least on Mac OS X).