Jump to content




Allow individual files to be added to the shell path


  • You cannot reply to this topic
No replies to this topic

#1 apemanzilla

  • Members
  • 1,421 posts

Posted 04 February 2016 - 06:28 PM

Right now, the shell.resolveProgram function will check each path entry as if it's a directory via fs.combine. My suggestion is that shell.resolveProgram will also check whether the file name specified by the entry (via fs.getName) is the same as the argument, so individual files can be added to the path.

For example, adding /folder/myProgram to the path and then running shell.resolveProgram("myProgram") would return /folder/myProgram.

With this change, you would not have to add entire directories to the path when but one program is needed from that folder.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users