You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Xiaodong DENG (JIRA)" <ji...@apache.org> on 2018/09/10 09:08:00 UTC
[jira] [Closed] (AIRFLOW-2818) Cant' identify DAG .py files with
capital case extension ('.PY', '.Py', '.pY')
[ https://issues.apache.org/jira/browse/AIRFLOW-2818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiaodong DENG closed AIRFLOW-2818.
----------------------------------
Resolution: Won't Fix
> Cant' identify DAG .py files with capital case extension ('.PY', '.Py', '.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
> Priority: Major
>
> This bug is quite simple.
> 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)