# Path: api/util/dynamic.py
# def getWorkingDirs():
# def setProjectPath(dir=None):
# def get_current_ip():
# def get_hostname():
# def script_info():


import requests, json
from flask import Flask, render_template, request, jsonify, make_response
from  api.util import dynamic
'''
@Summary: Server for GUI pages and user navigation throughout site
@Author: mackhendricks
'''


app = Flask(__name__)

# Configurations
app.config.from_object('config')

if ('API_SERVER_URL' in app.config) and len(app.config['API_SERVER_URL']) > 0:
    API_SERVER = app.config['API_SERVER_URL']
else: #Assume the the server is located on the local server

# Path: api/util/dynamic.py
# def getWorkingDirs():
# def setProjectPath(dir=None):
# def get_current_ip():
# def get_hostname():
# def script_info():


# Path: gui/gui_server.py
import requests, json
from flask import Flask, render_template, request, jsonify, make_response
from  api.util import dynamic

'''
@Summary: Server for GUI pages and user navigation throughout site
@Author: mackhendricks
'''


app = Flask(__name__)

# Configurations
app.config.from_object('config')

if ('API_SERVER_URL' in app.config) and len(app.config['API_SERVER_URL']) > 0:
    API_SERVER = app.config['API_SERVER_URL']
else: #Assume the the server is located on the local server

    ip = dynamic.get_current_ip()