How can I run a shell script instead of python in a PyCharm run configuration?

前端 未结 4 994
眼角桃花
眼角桃花 2021-02-11 16:47

I am trying to setup PyCharm to invoke a shell script, instead of python, as the run option. Is this possible? In the default options I only have Python, Python docs, and Python

4条回答
  •  迷失自我
    2021-02-11 16:55

    Another hacky solution to this is altering the config/options/jdk.table.xml file in your PyCharm's configuration folder. You simple add another entry in your jdks list:

    
      
      
      
      
      
        
          
        
        
          
        
      
      
    
    

    After that just select your interpreter for your project and you can use this shell as your interpreter. I used this solution when using interpreter inside docker's image.

提交回复
热议问题