import builtins                     # The builtins, including request and response objects
import os, sys                      # To change working director, to edit the python import path
from config import Configuration    # For the encoding to open the file with

config = Configuration('config.json') # Load in the configurations

# Set up the main built in values
request = builtins.request
response = builtins.response
display = {             # A dict which will be passed to mako later, containing `request` and `response` by default for ease-of-use
            'request': builtins.request,
            'response': builtins.response,
          }
print = response.print  # To replace `print`'s functionality, so it can also handle auto header sending

aelfi_directory = os.getcwd()
os.chdir(builtins.request.directory)                # Change the directory to the location of the document, so to allow it to act normal

sys.path.insert(0, './')                            # Allow files to be imported from the directory the file is going to be run in
sys.path.insert(1, aelfi_directory + '/modules')    # Allow files to be imported from the modules directory
for library_path in config.library_paths:
    sys.path.insert(1, library_path)                # Add the library paths to all of the libraries the user has stated in the build file

__name__ = '__web__'                                # Set this, to avoid appearance of being in env, and to make it more webby

exec(builtins.response.page)    # Run the script

# Make a found function, so as to allow for better slicing
found = lambda x: x if x is not -1 else None
finaldot = builtins.request._page_location.rfind('.')  # Get the location of the final dot of the file: 'xyz . py'
os.chdir(aelfi_directory)   #Go back to the AElfi directory, as paths will be relative to here

# Get the location of where the template could be,
#  use the found function to convert `-1`s to None, so to not cut if no '.' found
templatelocation = builtins.request._page_location[:found(finaldot)] + '.view'
if os.path.isfile(templatelocation):                                        # If the template is a file,
    with open(templatelocation, encoding=config.charset) as templatefile:   #  open it and,
        rendering = config.template_module.render(
            templatefile.read(),
            os.path.abspath('../'),
            display,
            os.path.abspath(templatelocation)
            )  #  print it rendered with their template engine choice (default mako)
        # If the script didn't already, see if we can send the headers again,
        response.sendheader() #  but leave til now 'cause rendering may change them, if the script doesn't print
        # Print the rendering
        print(rendering)
else:
    response.sendheader()
29dde0d1fdf87a5ff50cfaf7dbddf27d0d3fe889
<mask token>

<mask token>
os.chdir(builtins.request.directory)
sys.path.insert(0, './')
sys.path.insert(1, aelfi_directory + '/modules')
for library_path in config.library_paths:
    sys.path.insert(1, library_path)
<mask token>
exec(builtins.response.page)
<mask token>
os.chdir(aelfi_directory)
<mask token>
if os.path.isfile(templatelocation):
    with open(templatelocation, encoding=config.charset) as templatefile:
        rendering = config.template_module.render(templatefile.read(), os.
            path.abspath('../'), display, os.path.abspath(templatelocation))
        response.sendheader()
        print(rendering)
else:
    response.sendheader()

<mask token>
config = Configuration('config.json')
request = builtins.request
response = builtins.response
display = {'request': builtins.request, 'response': builtins.response}
print = response.print
aelfi_directory = os.getcwd()
os.chdir(builtins.request.directory)
sys.path.insert(0, './')
sys.path.insert(1, aelfi_directory + '/modules')
for library_path in config.library_paths:
    sys.path.insert(1, library_path)
__name__ = '__web__'
exec(builtins.response.page)
found = lambda x: x if x is not -1 else None
finaldot = builtins.request._page_location.rfind('.')
os.chdir(aelfi_directory)
templatelocation = builtins.request._page_location[:found(finaldot)] + '.view'
if os.path.isfile(templatelocation):
    with open(templatelocation, encoding=config.charset) as templatefile:
        rendering = config.template_module.render(templatefile.read(), os.
            path.abspath('../'), display, os.path.abspath(templatelocation))
        response.sendheader()
        print(rendering)
else:
    response.sendheader()

import builtins
import os, sys
from config import Configuration
config = Configuration('config.json')
request = builtins.request
response = builtins.response
display = {'request': builtins.request, 'response': builtins.response}
print = response.print
aelfi_directory = os.getcwd()
os.chdir(builtins.request.directory)
sys.path.insert(0, './')
sys.path.insert(1, aelfi_directory + '/modules')
for library_path in config.library_paths:
    sys.path.insert(1, library_path)
__name__ = '__web__'
exec(builtins.response.page)
found = lambda x: x if x is not -1 else None
finaldot = builtins.request._page_location.rfind('.')
os.chdir(aelfi_directory)
templatelocation = builtins.request._page_location[:found(finaldot)] + '.view'
if os.path.isfile(templatelocation):
    with open(templatelocation, encoding=config.charset) as templatefile:
        rendering = config.template_module.render(templatefile.read(), os.
            path.abspath('../'), display, os.path.abspath(templatelocation))
        response.sendheader()
        print(rendering)
else:
    response.sendheader()

import builtins                     # The builtins, including request and response objects
import os, sys                      # To change working director, to edit the python import path
from config import Configuration    # For the encoding to open the file with

config = Configuration('config.json') # Load in the configurations

# Set up the main built in values
request = builtins.request
response = builtins.response
display = {             # A dict which will be passed to mako later, containing `request` and `response` by default for ease-of-use
            'request': builtins.request,
            'response': builtins.response,
          }
print = response.print  # To replace `print`'s functionality, so it can also handle auto header sending

aelfi_directory = os.getcwd()
os.chdir(builtins.request.directory)                # Change the directory to the location of the document, so to allow it to act normal

sys.path.insert(0, './')                            # Allow files to be imported from the directory the file is going to be run in
sys.path.insert(1, aelfi_directory + '/modules')    # Allow files to be imported from the modules directory
for library_path in config.library_paths:
    sys.path.insert(1, library_path)                # Add the library paths to all of the libraries the user has stated in the build file

__name__ = '__web__'                                # Set this, to avoid appearance of being in env, and to make it more webby

exec(builtins.response.page)    # Run the script

# Make a found function, so as to allow for better slicing
found = lambda x: x if x is not -1 else None
finaldot = builtins.request._page_location.rfind('.')  # Get the location of the final dot of the file: 'xyz . py'
os.chdir(aelfi_directory)   #Go back to the AElfi directory, as paths will be relative to here

# Get the location of where the template could be,
#  use the found function to convert `-1`s to None, so to not cut if no '.' found
templatelocation = builtins.request._page_location[:found(finaldot)] + '.view'
if os.path.isfile(templatelocation):                                        # If the template is a file,
    with open(templatelocation, encoding=config.charset) as templatefile:   #  open it and,
        rendering = config.template_module.render(
            templatefile.read(),
            os.path.abspath('../'),
            display,
            os.path.abspath(templatelocation)
            )  #  print it rendered with their template engine choice (default mako)
        # If the script didn't already, see if we can send the headers again,
        response.sendheader() #  but leave til now 'cause rendering may change them, if the script doesn't print
        # Print the rendering
        print(rendering)
else:
    response.sendheader()