revert last change: don't append cwd to relative paths for now. There's
no way yet to safely detect absolute paths, so this would break on MS Windows. This will only mean that relative paths will always fail, as they don't match any pattern. These are all absolute.
This commit is contained in:
parent
875b99c90e
commit
caca942012
1 changed files with 0 additions and 4 deletions
|
@ -148,7 +148,6 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
|
|||
var _open = open;
|
||||
var root = string.fixpath(getprop("/sim/fg-root"));
|
||||
var home = string.fixpath(getprop("/sim/fg-home"));
|
||||
var curr = string.fixpath(getprop("/sim/fg-current"));
|
||||
var config = "Nasal/IOrules";
|
||||
|
||||
var read_rules = [];
|
||||
|
@ -203,9 +202,6 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
|
|||
if(mode == "r" or mode == "rb" or mode == "br")
|
||||
rules = read_rules;
|
||||
|
||||
if(path[0] != `/`)
|
||||
path = curr ~ '/' ~ path;
|
||||
|
||||
var fpath = string.fixpath(path);
|
||||
foreach(var d; rules) {
|
||||
if(string.match(fpath, d[0])) {
|
||||
|
|
Loading…
Add table
Reference in a new issue