diff options
| author | 2023-12-11 00:23:57 +0800 | |
|---|---|---|
| committer | 2023-12-11 00:23:57 +0800 | |
| commit | 82b5d33ba061ab1f73ea33e8a8a3646b831c15c9 (patch) | |
| tree | a6bb17319ffbe76662bc347f22cf115c48870f7d /src | |
| parent | 81cd8ab9d26d0560efd8238620a0c0152eb5b6b8 (diff) | |
| parent | 5781a072250a147d5e636b269fd0a8b7a0b045da (diff) | |
| download | infini-82b5d33ba061ab1f73ea33e8a8a3646b831c15c9.tar.gz infini-82b5d33ba061ab1f73ea33e8a8a3646b831c15c9.zip | |
Merge branch 'HydroRoll-Team:master' into master
Diffstat (limited to 'src')
| -rw-r--r-- | src/hydrorollcore/cli.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/hydrorollcore/cli.py b/src/hydrorollcore/cli.py index 51d8d983..79b75f33 100644 --- a/src/hydrorollcore/cli.py +++ b/src/hydrorollcore/cli.py @@ -23,11 +23,7 @@ class Cli: logger.critical("选项[--gui]尚未被支持!") sys.exit(1) - if not args.path: - path = Path(os.getcwd()).resolve() - else: - path = Path(args.path).resolve() - + path = Path(args.path).resolve() if args.path else Path(os.getcwd()).resolve() if args.new and args.run: logger.error("无法确定的指令要求: 你同时指定了new与run指令。") sys.exit(1) |
