-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #294 from ALIGN-analoglayout/feature/logging
Set log-level from command line
- Loading branch information
Showing
12 changed files
with
265 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
__version__ = '0.9.8' | ||
|
||
import pathlib | ||
import os | ||
import logging | ||
|
||
logdir = pathlib.Path.cwd() / "LOG" | ||
if not os.path.exists(logdir): | ||
os.mkdir(logdir) | ||
elif os.path.exists(logdir / "compiler.log"): | ||
os.rename(logdir / "compiler.log", logdir / "compiler.log1") | ||
logging.basicConfig(filename=logdir / "compiler.log", level=logging.ERROR) | ||
|
||
from .main import schematic2layout | ||
from .cmdline import CmdlineParser | ||
from .cmdline import CmdlineParser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.