From b080c53ed5f383dfb32beb03578e752edba4146a Mon Sep 17 00:00:00 2001 From: gabe Date: Sun, 5 Sep 2021 13:30:05 -0500 Subject: [PATCH] made default output file be in current directory. fixes #6. --- adocStaticSiteGen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adocStaticSiteGen.py b/adocStaticSiteGen.py index 7d73d53..c2a45e7 100755 --- a/adocStaticSiteGen.py +++ b/adocStaticSiteGen.py @@ -26,7 +26,8 @@ def parse_arguments(): #If outfile was not set, set it. if args.output == None: - outFile=args.inputDir.with_name(args.inputDir.name+'_compiled').resolve() + baseName=args.inputDir.with_name(args.inputDir.name+'_compiled').name + outFile=Path(os.getcwd()).joinpath(baseName) else: outFile=args.output.resovle()