X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fcore-utils%2Fcommon%2Fpath.ts;fp=shared%2Fcore-utils%2Fcommon%2Fpath.ts;h=006505316640c4ac8c16ef508df08cb342316def;hb=f8360396ffabd2f95e9ece9c5755173bae0114b6;hp=ec507538b21ca1900ea9f7485a51826f31916b37;hpb=cea093bca5b9d311b5c1d0539d53e965c901015b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/core-utils/common/path.ts b/shared/core-utils/common/path.ts index ec507538b..006505316 100644 --- a/shared/core-utils/common/path.ts +++ b/shared/core-utils/common/path.ts @@ -7,6 +7,8 @@ function root () { rootPath = __dirname + if (basename(rootPath) === 'tools') rootPath = resolve(rootPath, '..') + if (basename(rootPath) === 'scripts') rootPath = resolve(rootPath, '..') if (basename(rootPath) === 'common') rootPath = resolve(rootPath, '..') if (basename(rootPath) === 'core-utils') rootPath = resolve(rootPath, '..') if (basename(rootPath) === 'shared') rootPath = resolve(rootPath, '..')