Closed
Bug 584140
Opened 16 years ago
Closed 16 years ago
Need way for an ABC to find its disk location
Categories
(Tamarin Graveyard :: Virtual Machine, enhancement)
Tamarin Graveyard
Virtual Machine
Tracking
(Not tracked)
VERIFIED
WONTFIX
People
(Reporter: stejohns, Assigned: stejohns)
Details
Attachments
(1 file)
|
164.65 KB,
patch
|
edwsmith
:
superreview+
|
Details | Diff | Splinter Review |
Some acceptance tests (eg, everything related to DomainClass) would be much easier to write if we could detect the ABC's path at runtime; currently, there's no guarantee that the current working directory matches the currently-executing ABC's directory, so loading relative paths isn't workable.
| Assignee | ||
Comment 1•16 years ago
|
||
Here's a quick-n-dirty, but functional, approach. Sample usage:
package
{
import avmplus.System
print("I am " + System.evaluatingFile);
}
This is a bare-bones approach, but suitable for my needs.
Assignee: nobody → stejohns
Attachment #462448 -
Flags: superreview?(edwsmith)
Attachment #462448 -
Flags: review?(cpeyer)
Comment 2•16 years ago
|
||
Comment on attachment 462448 [details] [diff] [review]
Patch
fine with me, just keep the commenting good so we can build on this incrementally without too much pain. small vote for "currentFilename()" as the api, but.. meh.
Attachment #462448 -
Flags: superreview?(edwsmith) → superreview+
| Assignee | ||
Comment 3•16 years ago
|
||
I think I can probably do this just as easily using the avm_args functionaity (https://developer.mozilla.org/En/Tamarin/Creating_Tamarin_Tests#testname.as.avm_args) so I may skip this if that works out.
| Assignee | ||
Comment 4•16 years ago
|
||
I think the avm_args approach will be adequate, so I'm withdrawing this.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WONTFIX
| Assignee | ||
Updated•16 years ago
|
Attachment #462448 -
Flags: review?(cpeyer)
You need to log in
before you can comment on or make changes to this bug.
Description
•