potiuk commented on code in PR #23675:
URL: https://github.com/apache/airflow/pull/23675#discussion_r871602505


##########
airflow/providers/amazon/aws/hooks/batch_waiters.py:
##########
@@ -120,7 +120,7 @@ def default_config(self) -> Dict:
         :rtype: Dict
         """
         if self._default_config is None:
-            config_path = 
Path(__file__).with_name("batch_waiters.json").absolute()
+            config_path = 
Path(__file__).with_name("batch_waiters.json").resolve()
             with open(config_path) as config_file:
                 self._default_config = json.load(config_file)

Review Comment:
   We do not need to, but I prefer to do it in all cases where I am running any 
kind of path calculation that I am going to use later. The reason is that if I 
decide at a later point to use the path further and run it trough any command 
line tool, I do not have to worry whether it is absolute or not.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to