fix path stuff

This commit is contained in:
Nishi 2026-05-10 01:10:59 +09:00
commit 5962ba05ec
Signed by: nishi
GPG key ID: 27EF69B208EB9343
3 changed files with 15 additions and 3 deletions

View file

@ -251,6 +251,12 @@ const Project = function(target) {
this.libraries = [];
this.output = target;
this.base = fs.cwd();
if(this.base == fs.startedCwd) {
this.base = ".";
} else {
this.base = this.base.substr(fs.startedCwd.length + 1);
}
};
Project.prototype.generate = function() {