mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
16 lines
475 B
TypeScript
16 lines
475 B
TypeScript
|
import * as path from "path";
|
||
|
import {Config} from "./config/Config";
|
||
|
|
||
|
class ProjectPathClass {
|
||
|
public Root:string;
|
||
|
public ImageFolder:string;
|
||
|
public ThumbnailFolder:string;
|
||
|
|
||
|
constructor() {
|
||
|
this.Root = path.join(__dirname, "/../");
|
||
|
this.ImageFolder = path.join(this.Root, Config.Server.imagesFolder);
|
||
|
this.ThumbnailFolder = path.join(this.Root, Config.Server.thumbnailFolder);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export var ProjectPath = new ProjectPathClass();
|