3457 elif self.filetype in ["Python", "Python3", "MicroPython"]: |
3457 elif self.filetype in ["Python", "Python3", "MicroPython"]: |
3458 bindName = "dummy.py" |
3458 bindName = "dummy.py" |
3459 |
3459 |
3460 if not bindName and line0.startswith("#!"): |
3460 if not bindName and line0.startswith("#!"): |
3461 # #! marker detection |
3461 # #! marker detection |
3462 if "python3" in line0: |
3462 if ( |
3463 bindName = "dummy.py" |
3463 "python3" in line0 or |
3464 self.filetype = "Python3" |
3464 "python" in line0 |
3465 elif "python" in line0: |
3465 ): |
3466 bindName = "dummy.py" |
3466 bindName = "dummy.py" |
3467 self.filetype = "Python3" |
3467 self.filetype = "Python3" |
3468 elif ("/bash" in line0 or "/sh" in line0): |
3468 elif ("/bash" in line0 or "/sh" in line0): |
3469 bindName = "dummy.sh" |
3469 bindName = "dummy.sh" |
3470 elif "ruby" in line0: |
3470 elif "ruby" in line0: |