import os, sys

base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, base_dir)

from cc.deploy.paths import add_vendor_lib
add_vendor_lib()

# Set default settings and instantiate application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cc.settings.default")

from django.core.handlers.wsgi import WSGIHandler
application = WSGIHandler()

import os, sys

base_dir = os.path.dirname(
    os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.insert(0, base_dir)

from cc.deploy.paths import add_vendor_lib
add_vendor_lib()

# Set default settings and instantiate application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cc.settings.default")

from django.core.handlers.wsgi import WSGIHandler
application = WSGIHandler()

Fix path addition in vendor-wsgi.py.
Fix path addition in vendor-wsgi.py.

  import os, sys
  
+ base_dir = os.path.dirname(
- base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+     os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
  sys.path.insert(0, base_dir)
  
  from cc.deploy.paths import add_vendor_lib
  add_vendor_lib()
  
  # Set default settings and instantiate application
  
  os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cc.settings.default")
  
  from django.core.handlers.wsgi import WSGIHandler
  application = WSGIHandler()
  
Fix path addition in vendor-wsgi.py.
## Code Before:
import os, sys

base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, base_dir)

from cc.deploy.paths import add_vendor_lib
add_vendor_lib()

# Set default settings and instantiate application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cc.settings.default")

from django.core.handlers.wsgi import WSGIHandler
application = WSGIHandler()

## Instruction:
Fix path addition in vendor-wsgi.py.
## Code After:
import os, sys

base_dir = os.path.dirname(
    os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.insert(0, base_dir)

from cc.deploy.paths import add_vendor_lib
add_vendor_lib()

# Set default settings and instantiate application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cc.settings.default")

from django.core.handlers.wsgi import WSGIHandler
application = WSGIHandler()
