@@ -141,10 +141,10 @@ func Init(mode, importPath, srcPath string) {
141
141
packaged = true
142
142
}
143
143
144
- RevelPath = path .Join (revelSourcePath , filepath .FromSlash (REVEL_IMPORT_PATH ))
145
- BasePath = path .Join (SourcePath , filepath .FromSlash (importPath ))
146
- AppPath = path .Join (BasePath , "app" )
147
- ViewsPath = path .Join (AppPath , "views" )
144
+ RevelPath = filepath .Join (revelSourcePath , filepath .FromSlash (REVEL_IMPORT_PATH ))
145
+ BasePath = filepath .Join (SourcePath , filepath .FromSlash (importPath ))
146
+ AppPath = filepath .Join (BasePath , "app" )
147
+ ViewsPath = filepath .Join (AppPath , "views" )
148
148
149
149
CodePaths = []string {AppPath }
150
150
@@ -355,19 +355,19 @@ func ResolveImportPath(importPath string) (string, error) {
355
355
356
356
func addModule (name , importPath , modulePath string ) {
357
357
Modules = append (Modules , Module {Name : name , ImportPath : importPath , Path : modulePath })
358
- if codePath := path .Join (modulePath , "app" ); DirExists (codePath ) {
358
+ if codePath := filepath .Join (modulePath , "app" ); DirExists (codePath ) {
359
359
CodePaths = append (CodePaths , codePath )
360
- if viewsPath := path .Join (modulePath , "app" , "views" ); DirExists (viewsPath ) {
360
+ if viewsPath := filepath .Join (modulePath , "app" , "views" ); DirExists (viewsPath ) {
361
361
TemplatePaths = append (TemplatePaths , viewsPath )
362
362
}
363
363
}
364
364
365
- INFO .Print ("Loaded module " , path .Base (modulePath ))
365
+ INFO .Print ("Loaded module " , filepath .Base (modulePath ))
366
366
367
367
// Hack: There is presently no way for the testrunner module to add the
368
368
// "test" subdirectory to the CodePaths. So this does it instead.
369
369
if importPath == Config .StringDefault ("module.testrunner" , "github.com/revel/modules/testrunner" ) {
370
- CodePaths = append (CodePaths , path .Join (BasePath , "tests" ))
370
+ CodePaths = append (CodePaths , filepath .Join (BasePath , "tests" ))
371
371
}
372
372
}
373
373
0 commit comments