Uploaded image for project: 'SystemDS'
  1. SystemDS
  2. SYSTEMDS-1609

Update dmlFromResource to not require initial slash

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • SystemML 0.15
    • APIs
    • None

    Description

      Currently ScriptFactory's dmlFromResource (and pydmlFromResource) resourcePath requires an initial slash, such as:

      ScriptFactory.dmlFromResource("/scripts/datagen/genRandData4ALS.dml");
      

      Update dmlFromResource to not require an initial slash so that it mirrors dmlFromFile's behavior:

      ScriptFactory.dmlFromFile("scripts/datagen/genRandData4ALS.dml");
      ScriptFactory.dmlFromResource("scripts/datagen/genRandData4ALS.dml");
      
      // initial slash also still works for dmlFromResource
      ScriptFactory.dmlFromResource("/scripts/datagen/genRandData4ALS.dml");
      

      Attachments

        Activity

          People

            deron Jon Deron Eriksson
            deron Jon Deron Eriksson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: