Commit e6098dc7 authored by Nong Hoang Tu's avatar Nong Hoang Tu
Browse files

add create root path

parent a2c0bed9
...@@ -113,6 +113,8 @@ proc initConfig*(config: var ProgConf): bool = ...@@ -113,6 +113,8 @@ proc initConfig*(config: var ProgConf): bool =
config.rootPath = dirName(parentDir(paramStr(0))) & "packages/" config.rootPath = dirName(parentDir(paramStr(0))) & "packages/"
else: else:
config.rootPath = dirName(rootFolder) config.rootPath = dirName(rootFolder)
if not dirExists(config.rootPath):
createDir(config.rootPath)
# Create new log folder as day # Create new log folder as day
let logDate = now().format("dd-MM-yyyy") let logDate = now().format("dd-MM-yyyy")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment