X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=shared%2Fcore-utils%2Fcommon%2Fpath.ts;h=006505316640c4ac8c16ef508df08cb342316def;hb=c3edc5b074aa4bb1861ed0a94d3713808e87170f;hp=ec507538b21ca1900ea9f7485a51826f31916b37;hpb=c55e3d7227fe1453869e309025996b9d75256d5d;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, '..')