public override void doIt(MArgList args) { string fileName; MArgDatabase argData = new MArgDatabase(syntax, args); if (argData.isFlagSet(kFileNameFlag)) { fileName = argData.flagArgumentString(kFileNameFlag, 0); if (fileName != null) { string currFile = MFileIO.fileCurrentlyLoading; MStringArray pathDirectories = new MStringArray(currFile.Split('/')); if (pathDirectories.length > 0) { string expandedFileName = ""; for (int i = 0; i < pathDirectories.length - 1; i++) { expandedFileName += pathDirectories[i]; expandedFileName += "/"; } expandedFileName += fileName; MGlobal.sourceFile(expandedFileName); } } } return; }