We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1fc8aa3 + 5babc44 commit 224bf0fCopy full SHA for 224bf0f
src/diffpy/labpdfproc/tools.py
@@ -17,15 +17,14 @@ def set_output_directory(args):
17
args argparse.Namespace
18
the arguments from the parser
19
20
- Returns
21
- -------
22
- pathlib.PosixPath that contains the full path of the output directory
23
-
24
it is determined as follows:
25
If user provides an output directory, use it.
26
Otherwise, we set it to the current directory if nothing is provided.
27
We then create the directory if it does not exist.
28
+ Returns
+ -------
+ a Path object that contains the full path of the output directory
29
"""
30
output_dir = Path(args.output_directory).resolve() if args.output_directory else Path.cwd().resolve()
31
output_dir.mkdir(parents=True, exist_ok=True)
0 commit comments