Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-577

Scripting Engine should allow Relative File Paths

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Currently the IGB Scripting engine forces a user to enter the full file path when referring to a file path (such as when using the Snapshot command).

      It would be nice if the scripting engine would allow a user to enter the relative file path if they wanted to.

      This would increase usability and decrease possible user frustrations.

      We should also examine how these file paths work in Windows (may be different than Unix) when attempting to work on this story.

        Attachments

          Activity

          Hide
          ann.loraine Ann Loraine added a comment -

          By "relative," do we mean relative to the script?

          For example, if a script resides in:

          /User/mary/myscripts

          And a script contains the command:

          load File.bed

          then will IGB look for "File.bed" in /User/mary/myscripts ?

          Show
          ann.loraine Ann Loraine added a comment - By "relative," do we mean relative to the script? For example, if a script resides in: /User/mary/myscripts And a script contains the command: load File.bed then will IGB look for "File.bed" in /User/mary/myscripts ?
          Hide
          mason Mason Meyer (Inactive) added a comment - - edited

          I think it could either be relative to the script OR relative to the home directory.

          I think you put it best in your e-mail:

          1. support true relative paths: when saving or accessing a file, if user does not specify the absolute path to a file, then the file path should be relative to the location of the script file (if the script file is local) or relative to the user’s home directory (if the script file is remote)

          Show
          mason Mason Meyer (Inactive) added a comment - - edited I think it could either be relative to the script OR relative to the home directory. I think you put it best in your e-mail: 1. support true relative paths: when saving or accessing a file, if user does not specify the absolute path to a file, then the file path should be relative to the location of the script file (if the script file is local) or relative to the user’s home directory (if the script file is remote)
          Hide
          mason Mason Meyer (Inactive) added a comment -

          Testing verifies that the scripting engine allows relative file paths on Mac when using the tilda symbol. Since this story is resolved it will now be closed.

          Show
          mason Mason Meyer (Inactive) added a comment - Testing verifies that the scripting engine allows relative file paths on Mac when using the tilda symbol. Since this story is resolved it will now be closed.

            People

            • Assignee:
              mason Mason Meyer (Inactive)
              Reporter:
              mason Mason Meyer (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: