remove cfg
This commit is contained in:
@@ -11,7 +11,7 @@ def run_cmd(cmd):
|
|||||||
stderr=subprocess.PIPE,
|
stderr=subprocess.PIPE,
|
||||||
stdin=subprocess.PIPE)
|
stdin=subprocess.PIPE)
|
||||||
out,err = p.communicate()
|
out,err = p.communicate()
|
||||||
return render_template("index.html",out=out,keys=keys, title=cfg.title.decode("utf8"))
|
return render_template("index.html",out=out+"\nErrorLog\n"+err,keys=keys, title=cfg.title.decode("utf8"))
|
||||||
|
|
||||||
package_directory = os.path.dirname(os.path.abspath(__file__))
|
package_directory = os.path.dirname(os.path.abspath(__file__))
|
||||||
cfg = Config(file(os.path.join(package_directory, 'config.cfg')))
|
cfg = Config(file(os.path.join(package_directory, 'config.cfg')))
|
||||||
|
|||||||
Reference in New Issue
Block a user