title: Creating and changing into directories
body: <p>So maybe Python works differently than I am imagining it in my head. What I want to do is create a directory, "cd" into it, create another directory and then "cd" into that one. Every time I print out what directory I am in, i keep getting the one my current .py is in. Am I missing something?</p>
  
  <pre class="lang-py prettyprint-override"><code>#variables
  current_dir = os.getcwd()
  build_dir = "./../Documents/Releases/"
  prod_folder = "./Products"
  prod_dir = "./Products/Project"
  
  # Path to directory
  print("Current Directory: %s" % current_dir)
  os.chdir(build_dir)
  build_no = input("Enter the build branch/build number: ")
  
  #created new directory
  print("Current Directory: %s" % current_dir)
  if not os.path.exists(build_no):
      os.mkdir(build_no)
      print("Directory ", build_no, " created.")
  else:
      print("Directory ", build_no, "already exists.")
  
  # This works fine up to here. I "cd" into where I need to and the new
  # folder/directory is created, after here is where I am having issues.
  
  #cd into Products/Project
  print("Current Directory: %s" % current_dir)
  if not os.path.exists(prod_folder):
      os.mkdir(prod_folder)
  os.chdir(prod_dir)
  </code></pre>