ossiejhmoore

DumpModuleConfig Update

Aug 17th, 2012
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. Add commnets...
  2.  
  3.  
  4.  
  5. //
  6.  
  7. // Updated to determine proper location to write ini file to even when
  8.  
  9. // module is located in the staging directory.
  10.  
  11. //
  12.  
  13.  
  14.  
  15.  
  16. Add after "List key" variable declaration...
  17.  
  18.  
  19.  
  20.  
  21. Assoc tmpVal
  22.  
  23.  
  24.  
  25. //
  26.  
  27. // Added to determine proper export locaiton for module ini file
  28.  
  29. // even when run while module is in staging. Replace $mymodule
  30. // with the module containing the Utils.GetLocationOfThisOspace
  31. // method
  32.  
  33. //
  34.  
  35. tmpVal = $mymodule.Utils.GetLocationOfThisOSpace(this)
  36.  
  37. if (!tmpVal.ok)
  38.  
  39. $DialogUtils.Error(tmpVal.ErrMsg)
  40.  
  41. else
  42.  
  43. outFileName = Str.Format("%1%2.ini", tmpVal.Path, .ModuleName())
  44.  
  45. $DialogUtils.Notify(Str.Format("Dumping module config to %1", outFileName))
  46.  
  47. end
Add Comment
Please, Sign In to add comment