From fea189a551ca8e1b478ecaf5bebdb47dad605cc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CRoman?= <“mankowsky_r@psi.ch”> Date: Tue, 7 May 2019 19:14:34 +0200 Subject: [PATCH] fixed the directory permission assignment after creation of scan_info (chmod(775) -> chmod(0o775)) in scan.py --- eco/acquisition/scan.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eco/acquisition/scan.py b/eco/acquisition/scan.py index 8998571..b84412d 100755 --- a/eco/acquisition/scan.py +++ b/eco/acquisition/scan.py @@ -163,9 +163,9 @@ class Scans: f"NB! Path {scan_info_dir.absolute().as_posix()} does not exist, will try to create it..." ) scan_info_dir.mkdir() - print(f"Successfully created {scan_info_dir.absolute().as_posix()}") - scan_info_dir.chmod(775) - print(f"Successfully changed permissions to 775") + print(f"Tried to create {scan_info_dir.absolute().as_posix()}") + scan_info_dir.chmod(0o775) + print(f"Tried to change permissions to 775") self.scan_info_dir = scan_info_dir self.filename_generator = RunFilenameGenerator(self.scan_info_dir)