diff --git a/aegisub/src/auto4_lua.cpp b/aegisub/src/auto4_lua.cpp
index 570a058b43c88f74e2104a97e6f7207dfcd3b3a0..268f49d920329bf2c5e18e39f5948212e080b7ab 100644
--- a/aegisub/src/auto4_lua.cpp
+++ b/aegisub/src/auto4_lua.cpp
@@ -382,11 +382,15 @@ namespace Automation4 {
 			push_value(L, &pairs<table_ipairs>);
 			lua_setglobal(L, "ipairs");
 
-			// add include_path to the module load path
+			// set the module load path to include_path
 			lua_getglobal(L, "package");
 			push_value(L, "path");
+#ifdef __WXMSW__
+			push_value(L, "");
+#else
 			push_value(L, "path");
 			lua_gettable(L, -3);
+#endif
 
 			for (auto const& path : include_path) {
 				lua_pushfstring(L, ";%s/?.lua;%s/?/init.lua", path.string().c_str(), path.string().c_str());