Github repo being detected as Bash instead of Python
I am having some difficulty getting an imported Github repo to be detected as a Python project. Whenever I create a new repo by importing the GitHub project, it gets detected as a Bash project.
When I only have main.py in the project, it gets detected as Bash project.
I then added a .replit file with the following contents:
language = "python3" run = "python main.py"
When I import the repo again with this file, it still gets detected as a Bash project.
Any idea what I need to do to get it imported as a Python project?
Hello, there is really no difference between a bash repl and a python repl. A bash repl is basically a terminal, so it's just python with extra steps. If you try to run it, given that you have a
main.py in the relative folder, it should work fine.
Hope this helps!
I wrote the code in a Python repl, then created a Github repo through the Version Control panel. Then I created a new repl by importing that repo (to simulate what my students would be seeing). The imported repo keeps getting detected as Bash, and the code threw SyntaxErrors even though it is the exact same code.