ashb commented on a change in pull request #4396: [AIRFLOW-3585] - Add edges to
database
URL: https://github.com/apache/airflow/pull/4396#discussion_r256757124
##########
File path: airflow/models/__init__.py
##########
@@ -356,6 +293,9 @@ def process_file(self, filepath, only_if_updated=True,
safe_mode=True):
if filepath is None or not os.path.isfile(filepath):
return found_dags
+ if filepath.endswith(".pyc"):
+ filepath = filepath.rstrip("c")
Review comment:
Won't this likely mean end up processing the .py and .pyc?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services