airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaodong DENG (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AIRFLOW-2818) Cant' identify DAG .py files with capital case extension ('.PY' rather than '.py')
Date Sun, 29 Jul 2018 00:29:00 GMT
Xiaodong DENG created AIRFLOW-2818:
--------------------------------------

             Summary: Cant' identify DAG .py files with capital case extension ('.PY' rather
than '.py')
                 Key: AIRFLOW-2818
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2818
             Project: Apache Airflow
          Issue Type: Bug
          Components: DAG
            Reporter: Xiaodong DENG
            Assignee: Xiaodong DENG


This bug is quite simply. 

In multiple scripts in which we try to identify and list python files, the capital case extension
was not considered. For example, if I have a DAG file with file name "dag.py", it will be
identified. However, if I change the name into "dag.PY", it will be missed by Airflow.

This is because simply using function *os.path.splitext()* can not handle case issue.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message