Author: navaraf
Date: Thu May 8 03:00:35 2008
New Revision: 33362
URL:
http://svn.reactos.org/svn/reactos?rev=33362&view=rev
Log:
Use correct path when loading plugins.
Modified:
trunk/irc/TechBot/TechBot.Library/Factory/CommandFactory.cs
Modified: trunk/irc/TechBot/TechBot.Library/Factory/CommandFactory.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/irc/TechBot/TechBot.Library/Factor…
==============================================================================
--- trunk/irc/TechBot/TechBot.Library/Factory/CommandFactory.cs [iso-8859-1] (original)
+++ trunk/irc/TechBot/TechBot.Library/Factory/CommandFactory.cs [iso-8859-1] Thu May 8
03:00:35 2008
@@ -18,11 +18,9 @@
public static void LoadPlugins()
{
//get the file names of the dll files in the current directory.
- FileInfo objExeInfo = new
FileInfo(@"C:\Ros\current\irc\TechBot\TechBot.Console\bin\Debug\");
-
- foreach (FileInfo objInfo in
objExeInfo.Directory.GetFiles("*.dll"))
+ foreach (string fileName in
Directory.GetFiles(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location),
"*.dll"))
{
- LoadPluginsFromDLLFile(objInfo.FullName);
+ LoadPluginsFromDLLFile(fileName);
}
}