You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Deron Eriksson (JIRA)" <ji...@apache.org> on 2017/05/17 22:36:04 UTC

[jira] [Created] (SYSTEMML-1609) Update dmlFromResource to not require initial slash

Deron Eriksson created SYSTEMML-1609:
----------------------------------------

             Summary: Update dmlFromResource to not require initial slash
                 Key: SYSTEMML-1609
                 URL: https://issues.apache.org/jira/browse/SYSTEMML-1609
             Project: SystemML
          Issue Type: Improvement
          Components: APIs
            Reporter: Deron Eriksson
            Assignee: Deron Eriksson
            Priority: Minor


Currently ScriptFactory's dmlFromResource (and pydmlFromResource) resourcePath requires an initial slash, such as:
{code}
ScriptFactory.dmlFromResource("/scripts/datagen/genRandData4ALS.dml");
{code}

Update dmlFromResource to not require an initial slash so that it mirrors dmlFromFile's behavior:
{code}
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");
{code}




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)