Skip to content

Commit 20eb2b8

Browse files
changed output_dir to absolute path, changed default to cwd, updated args.output_directory as output directory we defined
1 parent b0fb304 commit 20eb2b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diffpy/labpdfproc/labpdfprocapp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ def main():
6464
args = get_args()
6565
wavelength = WAVELENGTHS[args.anode_type]
6666
filepath = Path(args.input_file)
67-
output_dir = Path(args.output_directory) if args.output_directory else Path("corrected")
67+
output_dir = Path(args.output_directory).resolve() if args.output_directory else Path.cwd()
6868
output_dir.mkdir(parents=True, exist_ok=True)
69+
args.output_directory = output_dir
6970
outfilestem = filepath.stem + "_corrected"
7071
corrfilestem = filepath.stem + "_cve"
7172
outfile = output_dir / (outfilestem + ".chi")

0 commit comments

Comments
 (0)