Updated server app

This commit is contained in:
Felipe Martin 2013-11-18 23:00:25 +01:00
parent c962e5dc51
commit a02e694714
3 changed files with 13 additions and 13 deletions

3
.gitignore vendored
View File

@ -37,3 +37,6 @@ nosetests.xml
# Virtualenv
.virtualenv
# Backups folder
/_backups

View File

@ -1,21 +1,13 @@
from flask import Flask
from os import getcwd
from os.path import dirname, realpath
from iosfu.conf import ROOT_PATH
server = Flask(__name__)
PWD = getcwd()
MODULE_PATH = dirname(realpath(__file__))
app = Flask(__name__)
@app.route("/")
@server.route("/")
def main():
result = """
Executed from: {0}<br />
Path for GUI module: {1}
""".format(PWD, MODULE_PATH)
""".format(ROOT_PATH)
return result
if __name__ == "__main__":
app.run()

5
iosfu/server.py Normal file
View File

@ -0,0 +1,5 @@
from .gui.app import server
if __name__ == "__main__":
server.run()