Github user aarondav commented on a diff in the pull request:

    https://github.com/apache/spark/pull/664#discussion_r12337792
  
    --- Diff: 
core/src/main/scala/org/apache/spark/deploy/SparkSubmitArguments.scala ---
    @@ -260,9 +296,10 @@ private[spark] class SparkSubmitArguments(args: 
Seq[String]) {
                   val errMessage = s"Unrecognized option '$value'."
                   SparkSubmit.printErrorAndExit(errMessage)
                 case v =>
    -             primaryResource = v
    -             inSparkOpts = false
    -             parse(tail)
    +              primaryResource = v
    +              inSparkOpts = false
    +              isPython = v.endsWith(".py")
    --- End diff --
    
    Is it very uncommon to run python files with a `#!/usr/bin/env python` 
header?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to