title: Unable to run PyTest-bdd step definition file as it throws index out of range error
body: <p><strong>Feature file is as below</strong></p>
  
  <p>Feature: Nopcommerce Login</p>
  
  <p>Scenario: login to nopcommerce website</p>
  
  <pre><code>Given nopcommerce page is displayed
  When user enters username as admin@yourstore.com
  When user enters password as admin
  Then user is able to login to nocpmmerce website
  </code></pre>
  
  <p><strong>step definition python file is as below</strong></p>
  
  <pre><code>from pytest_bdd import scenarios, given, when, then 
  from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  import pytest
  
  scenarios('../features/NopcommerceLogin.feature')
  
  @pytest.fixture()
  def browser():
      driver = webdriver.Safari()
      yield driver
      driver.quit()
  
  @given("nopcommerce page is displayed")
  def webpage(browser):
      browser.get("http://admin-demo.nopcommerce.com")
  
  @when("user enters username as admin@yourstore.com")
  def enter_uname(browser):
      browser.find_element_by_id("Email").send_keys("admin@yourstore.com")
  
  @when("user enters password as admin")
  def enter_pwd(browser):
      browser.find_element_by_id("Password").send_keys("admin")
      browser.find_element_by_xpath("/html/body/div[6]/div/div/div/div/div[2]/div[1]/div/form/div[3]/input").click()
  
  @then("user is able to login to nocpmmerce website")
  def loginsuccess(browser):
      assert browser.current_url == "https://admin-demo.nopcommerce.com/admin/"
  </code></pre>
  
  <p>when the step_def file is run, the following error message is displayed</p>
  
  <p>Traceback (most recent call last):</p>
  
  <p>File "~/tests/step_defs/test_NopcommerceLogin.py", line 6, in 
      scenarios('../features/NopcommerceLogin.feature')</p>
  
  <p>File "~/venv/lib/python3.8/site-packages/pytest_bdd/scenario.py", line 343, in scenarios
      features_base_dir = get_features_base_dir(module)</p>
  
  <p>File "~/venv/lib/python3.8/site-packages/pytest_bdd/scenario.py", line 295, in get_features_base_dir
      return get_from_ini('bdd_features_base_dir', default_base_dir)</p>
  
  <p>File "~/venv/lib/python3.8/site-packages/pytest_bdd/scenario.py", line 303, in get_from_ini
      config = CONFIG_STACK[-1]</p>
  
  <p>IndexError: list index out of range</p>