Skip to content

Commit e5b3400

Browse files
committed
fixed missing mode in os.access
1 parent 1ac61b8 commit e5b3400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoprot/r_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def check_r_install():
102102

103103
if not os.path.isfile(os.path.join(base_path, "autoprot.conf")):
104104
# check if you have write permissions
105-
if not os.access(os.path.join(base_path, "autoprot.conf")):
105+
if not os.access(os.path.join(base_path, "autoprot.conf"), os.W_OK):
106106
raise OSError(
107107
f"Could not create autoprot.conf file at {os.path.join(base_path, 'autoprot.conf')}. "
108108
f"Please create a file with the following content and place at this dir:"

0 commit comments

Comments
 (0)