public string GetFilePath() { int index = m_listNewType.SelectedIndex; if (ScriptType.CommandScript == SelectedScriptType) { string filename = m_txtCommandName.Text + "_cmd.py"; PlugInPath p = m_combo_plugin.SelectedItem as PlugInPath; if (null == p) { // This is a "new" IronPython plug-in. Use the Text in the combo box // to define a new plug-in Guid plugin_id = Guid.NewGuid(); string shortname = m_combo_plugin.Text + " {" + plugin_id.ToString() + "}"; string fullpath = IronPythonPlugIn.thePlugIn.PlugInScriptsDirectory(); fullpath = System.IO.Path.Combine(fullpath, shortname); p = new PlugInPath(fullpath); } string path = p.FullPath; path = System.IO.Path.Combine(path, "dev"); path = System.IO.Path.Combine(path, filename); return(path); } return(null); }
public string GetFilePath() { int index = m_listNewType.SelectedIndex; if ( ScriptType.CommandScript == SelectedScriptType ) { string filename = m_txtCommandName.Text + "_cmd.py"; PlugInPath p = m_combo_plugin.SelectedItem as PlugInPath; if (null == p) { // This is a "new" IronPython plug-in. Use the Text in the combo box // to define a new plug-in Guid plugin_id = Guid.NewGuid(); string shortname = m_combo_plugin.Text + " {" + plugin_id.ToString() + "}"; string fullpath = IronPythonPlugIn.thePlugIn.PlugInScriptsDirectory(); fullpath = System.IO.Path.Combine(fullpath, shortname); p = new PlugInPath(fullpath); } string path = p.FullPath; path = System.IO.Path.Combine(path, "dev"); path = System.IO.Path.Combine(path, filename); return path; } return null; }