@@ -85,7 +85,7 @@ function initConfigDir (argv) {
8585 * @return {string } Path to the views dir
8686 */
8787function initDefaultViews ( configPath ) {
88- let defaultViewsPath = path . resolve ( ' ./default-views')
88+ let defaultViewsPath = path . join ( __dirname , '. ./default-views')
8989 let viewsPath = path . join ( configPath , 'views' )
9090
9191 ensureDirCopyExists ( defaultViewsPath , viewsPath )
@@ -106,17 +106,17 @@ function initDefaultViews (configPath) {
106106 */
107107function initTemplateDirs ( configPath ) {
108108 let accountTemplatePath = ensureDirCopyExists (
109- '. /default-templates/new-account',
109+ path . join ( __dirname , '.. /default-templates/new-account') ,
110110 path . join ( configPath , 'templates' , 'new-account' )
111111 )
112112
113113 let emailTemplatesPath = ensureDirCopyExists (
114- '. /default-templates/emails',
114+ path . join ( __dirname , '.. /default-templates/emails') ,
115115 path . join ( configPath , 'templates' , 'emails' )
116116 )
117117
118118 let serverTemplatePath = ensureDirCopyExists (
119- '. /default-templates/server',
119+ path . join ( __dirname , '.. /default-templates/server') ,
120120 path . join ( configPath , 'templates' , 'server' )
121121 )
122122
0 commit comments