prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Checkov fails to start in Windows environments 
  **Describe the bug**
  After you install Checkov on Windows, running Checkov does nothing.
  
  **To Reproduce**
  Steps to reproduce the behavior:
  1. Open Powershell/cmd
  2. Run cli command  'checkov'
  3. Does nothing
  
  **Expected behavior**
  The tool running. Magic.
  
  **Screenshots**
  I'm not sure showing nothing would help.
  
  **Desktop (please complete the following information):**
   - OS: Windows 10
   - Checkov Version 1.0.173
  
  **Additional context**
  I know Windows! Like who cares and tbh ive got WSL2 and it works a dream but customers, customers and their awful locked down... anyway.
  I'm using Python37 where i've installed .
  If you look in your c:/Python37/scripts folder there is a "checkov" bash script. This is the nub of it this doesn't run! However if you add a batch file "checkov-scan.bat" [or call whatever} with this content:
  ```cmd
  C:\Python37\python C:\Python37\Lib\site-packages\checkov\main.py %1 %2
  ```
  Then when you run "checkov-scan" at your shell, it works! So is there anyway you could package up something similar in a release? please? 
  Also I made a python based pre-commit for checkov called checkov-scan - here <https://github.com/JamesWoolfenden/pre-commit>
  
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `setup.py`
  Content:
  ```
  1 #!/usr/bin/env python
  2 import logging
  3 import os
  4 from importlib import util
  5 from os import path
  6 
  7 import setuptools
  8 from setuptools import setup
  9 
  10 # read the contents of your README file
  11 this_directory = path.abspath(path.dirname(__file__))
  12 with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
  13     long_description = f.read()
  14 
  15 logger = logging.getLogger(__name__)
  16 spec = util.spec_from_file_location(
  17     "checkov.version", os.path.join("checkov", "version.py")
  18 )
  19 # noinspection PyUnresolvedReferences
  20 mod = util.module_from_spec(spec)
  21 spec.loader.exec_module(mod)  # type: ignore
  22 version = mod.version  # type: ignore
  23 
  24 setup(
  25     extras_require={
  26         "dev": [
  27             "alabaster==0.7.12",
  28             "attrs==19.3.0",
  29             "babel==2.7.0",
  30             "certifi==2019.11.28",
  31             "chardet==3.0.4",
  32             "coverage==4.5.4",
  33             "coverage-badge==1.0.1",
  34             "detect-secrets==0.13.0",
  35             "docopt==0.6.2",
  36             "docutils==0.15.2",
  37             "idna==2.8",
  38             "imagesize==1.1.0",
  39             "importlib-metadata==1.1.0; python_version < '3.8'",
  40             "jinja2==2.10.3",
  41             "lark-parser==0.7.8",
  42             "markupsafe==1.1.1",
  43             "more-itertools==8.0.0",
  44             "packaging==19.2",
  45             "pluggy==0.13.1",
  46             "py==1.8.0",
  47             "pygments==2.5.2",
  48             "pyparsing==2.4.5",
  49             "pytest==5.3.1",
  50             "python-hcl2==0.2.0",
  51             "pytz==2019.3",
  52             "pyyaml==5.1.2",
  53             "requests==2.22.0",
  54             "six==1.13.0",
  55             "snowballstemmer==2.0.0",
  56             "sphinx==2.2.1",
  57             "sphinxcontrib-applehelp==1.0.1",
  58             "sphinxcontrib-devhelp==1.0.1",
  59             "sphinxcontrib-htmlhelp==1.0.2",
  60             "sphinxcontrib-jsmath==1.0.1",
  61             "sphinxcontrib-qthelp==1.0.2",
  62             "sphinxcontrib-serializinghtml==1.1.3",
  63             "urllib3==1.25.7",
  64             "wcwidth==0.1.7",
  65             "zipp==0.6.0",
  66         ]
  67     },
  68     install_requires=[
  69         "chardet==3.0.4",
  70         "colorama==0.4.3",
  71         "docopt==0.6.2",
  72         "idna==2.8",
  73         "junit-xml==1.8",
  74         "lark-parser==0.7.8",
  75         "python-hcl2==0.2.0",
  76         "pyyaml==5.2",
  77         "requests==2.22.0",
  78         "six==1.13.0",
  79         "tabulate==0.8.6",
  80         "termcolor==1.1.0",
  81         "urllib3==1.25.7",
  82         "dpath==1.5.0"
  83     ],
  84     license="Apache License 2.0",
  85     name="checkov",
  86     version=version,
  87     description="Infrastructure as code static analysis",
  88     author="bridgecrew",
  89     author_email="support@bridgecrew.io",
  90     url="https://github.com/bridgecrewio/checkov",
  91     packages=setuptools.find_packages(exclude=["tests*"]),
  92     scripts=["bin/checkov"],
  93     long_description=long_description,
  94     long_description_content_type="text/markdown",
  95     classifiers=[
  96         'Environment :: Console',
  97         'Intended Audience :: Developers',
  98         'Intended Audience :: System Administrators',
  99         'Programming Language :: Python :: 3.6',
  100         'Programming Language :: Python :: 3.7',
  101         'Topic :: Security',
  102         'Topic :: Software Development :: Build Tools'
  103     ]
  104 )
  105
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -89,7 +89,7 @@
       author_email="support@bridgecrew.io",
       url="https://github.com/bridgecrewio/checkov",
       packages=setuptools.find_packages(exclude=["tests*"]),
  -    scripts=["bin/checkov"],
  +    scripts=["bin/checkov","bin/checkov.bat"],
       long_description=long_description,
       long_description_content_type="text/markdown",
       classifiers=[
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -89,7 +89,7 @@\n     author_email=\"support@bridgecrew.io\",\n     url=\"https://github.com/bridgecrewio/checkov\",\n     packages=setuptools.find_packages(exclude=[\"tests*\"]),\n-    scripts=[\"bin/checkov\"],\n+    scripts=[\"bin/checkov\",\"bin/checkov.bat\"],\n     long_description=long_description,\n     long_description_content_type=\"text/markdown\",\n     classifiers=[\n", "issue": "Checkov fails to start in Windows environments \n**Describe the bug**\r\nAfter you install Checkov on Windows, running Checkov does nothing.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Open Powershell/cmd\r\n2. Run cli command  'checkov'\r\n3. Does nothing\r\n\r\n**Expected behavior**\r\nThe tool running. Magic.\r\n\r\n**Screenshots**\r\nI'm not sure showing nothing would help.\r\n\r\n**Desktop (please complete the following information):**\r\n - OS: Windows 10\r\n - Checkov Version 1.0.173\r\n\r\n**Additional context**\r\nI know Windows! Like who cares and tbh ive got WSL2 and it works a dream but customers, customers and their awful locked down... anyway.\r\nI'm using Python37 where i've installed .\r\nIf you look in your c:/Python37/scripts folder there is a \"checkov\" bash script. This is the nub of it this doesn't run! However if you add a batch file \"checkov-scan.bat\" [or call whatever} with this content:\r\n```cmd\r\nC:\\Python37\\python C:\\Python37\\Lib\\site-packages\\checkov\\main.py %1 %2\r\n```\r\nThen when you run \"checkov-scan\" at your shell, it works! So is there anyway you could package up something similar in a release? please? \r\nAlso I made a python based pre-commit for checkov called checkov-scan - here <https://github.com/JamesWoolfenden/pre-commit>\r\n\r\n\n", "before_files": [{"content": "#!/usr/bin/env python\nimport logging\nimport os\nfrom importlib import util\nfrom os import path\n\nimport setuptools\nfrom setuptools import setup\n\n# read the contents of your README file\nthis_directory = path.abspath(path.dirname(__file__))\nwith open(path.join(this_directory, \"README.md\"), encoding=\"utf-8\") as f:\n    long_description = f.read()\n\nlogger = logging.getLogger(__name__)\nspec = util.spec_from_file_location(\n    \"checkov.version\", os.path.join(\"checkov\", \"version.py\")\n)\n# noinspection PyUnresolvedReferences\nmod = util.module_from_spec(spec)\nspec.loader.exec_module(mod)  # type: ignore\nversion = mod.version  # type: ignore\n\nsetup(\n    extras_require={\n        \"dev\": [\n            \"alabaster==0.7.12\",\n            \"attrs==19.3.0\",\n            \"babel==2.7.0\",\n            \"certifi==2019.11.28\",\n            \"chardet==3.0.4\",\n            \"coverage==4.5.4\",\n            \"coverage-badge==1.0.1\",\n            \"detect-secrets==0.13.0\",\n            \"docopt==0.6.2\",\n            \"docutils==0.15.2\",\n            \"idna==2.8\",\n            \"imagesize==1.1.0\",\n            \"importlib-metadata==1.1.0; python_version < '3.8'\",\n            \"jinja2==2.10.3\",\n            \"lark-parser==0.7.8\",\n            \"markupsafe==1.1.1\",\n            \"more-itertools==8.0.0\",\n            \"packaging==19.2\",\n            \"pluggy==0.13.1\",\n            \"py==1.8.0\",\n            \"pygments==2.5.2\",\n            \"pyparsing==2.4.5\",\n            \"pytest==5.3.1\",\n            \"python-hcl2==0.2.0\",\n            \"pytz==2019.3\",\n            \"pyyaml==5.1.2\",\n            \"requests==2.22.0\",\n            \"six==1.13.0\",\n            \"snowballstemmer==2.0.0\",\n            \"sphinx==2.2.1\",\n            \"sphinxcontrib-applehelp==1.0.1\",\n            \"sphinxcontrib-devhelp==1.0.1\",\n            \"sphinxcontrib-htmlhelp==1.0.2\",\n            \"sphinxcontrib-jsmath==1.0.1\",\n            \"sphinxcontrib-qthelp==1.0.2\",\n            \"sphinxcontrib-serializinghtml==1.1.3\",\n            \"urllib3==1.25.7\",\n            \"wcwidth==0.1.7\",\n            \"zipp==0.6.0\",\n        ]\n    },\n    install_requires=[\n        \"chardet==3.0.4\",\n        \"colorama==0.4.3\",\n        \"docopt==0.6.2\",\n        \"idna==2.8\",\n        \"junit-xml==1.8\",\n        \"lark-parser==0.7.8\",\n        \"python-hcl2==0.2.0\",\n        \"pyyaml==5.2\",\n        \"requests==2.22.0\",\n        \"six==1.13.0\",\n        \"tabulate==0.8.6\",\n        \"termcolor==1.1.0\",\n        \"urllib3==1.25.7\",\n        \"dpath==1.5.0\"\n    ],\n    license=\"Apache License 2.0\",\n    name=\"checkov\",\n    version=version,\n    description=\"Infrastructure as code static analysis\",\n    author=\"bridgecrew\",\n    author_email=\"support@bridgecrew.io\",\n    url=\"https://github.com/bridgecrewio/checkov\",\n    packages=setuptools.find_packages(exclude=[\"tests*\"]),\n    scripts=[\"bin/checkov\"],\n    long_description=long_description,\n    long_description_content_type=\"text/markdown\",\n    classifiers=[\n        'Environment :: Console',\n        'Intended Audience :: Developers',\n        'Intended Audience :: System Administrators',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n        'Topic :: Security',\n        'Topic :: Software Development :: Build Tools'\n    ]\n)\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\nimport logging\nimport os\nfrom importlib import util\nfrom os import path\n\nimport setuptools\nfrom setuptools import setup\n\n# read the contents of your README file\nthis_directory = path.abspath(path.dirname(__file__))\nwith open(path.join(this_directory, \"README.md\"), encoding=\"utf-8\") as f:\n    long_description = f.read()\n\nlogger = logging.getLogger(__name__)\nspec = util.spec_from_file_location(\n    \"checkov.version\", os.path.join(\"checkov\", \"version.py\")\n)\n# noinspection PyUnresolvedReferences\nmod = util.module_from_spec(spec)\nspec.loader.exec_module(mod)  # type: ignore\nversion = mod.version  # type: ignore\n\nsetup(\n    extras_require={\n        \"dev\": [\n            \"alabaster==0.7.12\",\n            \"attrs==19.3.0\",\n            \"babel==2.7.0\",\n            \"certifi==2019.11.28\",\n            \"chardet==3.0.4\",\n            \"coverage==4.5.4\",\n            \"coverage-badge==1.0.1\",\n            \"detect-secrets==0.13.0\",\n            \"docopt==0.6.2\",\n            \"docutils==0.15.2\",\n            \"idna==2.8\",\n            \"imagesize==1.1.0\",\n            \"importlib-metadata==1.1.0; python_version < '3.8'\",\n            \"jinja2==2.10.3\",\n            \"lark-parser==0.7.8\",\n            \"markupsafe==1.1.1\",\n            \"more-itertools==8.0.0\",\n            \"packaging==19.2\",\n            \"pluggy==0.13.1\",\n            \"py==1.8.0\",\n            \"pygments==2.5.2\",\n            \"pyparsing==2.4.5\",\n            \"pytest==5.3.1\",\n            \"python-hcl2==0.2.0\",\n            \"pytz==2019.3\",\n            \"pyyaml==5.1.2\",\n            \"requests==2.22.0\",\n            \"six==1.13.0\",\n            \"snowballstemmer==2.0.0\",\n            \"sphinx==2.2.1\",\n            \"sphinxcontrib-applehelp==1.0.1\",\n            \"sphinxcontrib-devhelp==1.0.1\",\n            \"sphinxcontrib-htmlhelp==1.0.2\",\n            \"sphinxcontrib-jsmath==1.0.1\",\n            \"sphinxcontrib-qthelp==1.0.2\",\n            \"sphinxcontrib-serializinghtml==1.1.3\",\n            \"urllib3==1.25.7\",\n            \"wcwidth==0.1.7\",\n            \"zipp==0.6.0\",\n        ]\n    },\n    install_requires=[\n        \"chardet==3.0.4\",\n        \"colorama==0.4.3\",\n        \"docopt==0.6.2\",\n        \"idna==2.8\",\n        \"junit-xml==1.8\",\n        \"lark-parser==0.7.8\",\n        \"python-hcl2==0.2.0\",\n        \"pyyaml==5.2\",\n        \"requests==2.22.0\",\n        \"six==1.13.0\",\n        \"tabulate==0.8.6\",\n        \"termcolor==1.1.0\",\n        \"urllib3==1.25.7\",\n        \"dpath==1.5.0\"\n    ],\n    license=\"Apache License 2.0\",\n    name=\"checkov\",\n    version=version,\n    description=\"Infrastructure as code static analysis\",\n    author=\"bridgecrew\",\n    author_email=\"support@bridgecrew.io\",\n    url=\"https://github.com/bridgecrewio/checkov\",\n    packages=setuptools.find_packages(exclude=[\"tests*\"]),\n    scripts=[\"bin/checkov\",\"bin/checkov.bat\"],\n    long_description=long_description,\n    long_description_content_type=\"text/markdown\",\n    classifiers=[\n        'Environment :: Console',\n        'Intended Audience :: Developers',\n        'Intended Audience :: System Administrators',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n        'Topic :: Security',\n        'Topic :: Software Development :: Build Tools'\n    ]\n)\n", "path": "setup.py"}]}