Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
kerem3338 authored Oct 14, 2021
1 parent ab471d8 commit fb96c46
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions sabe.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from flask import Flask, render_template, request
from colorama import init
from termcolor import colored
import webbrowser
init()


Expand Down Expand Up @@ -69,13 +70,19 @@ def render_file(self, filename, encoding="utf8"):
return filecontant.read()


def run(self, default="/"):
def run(self, run="classic"):
"""Run application"""
if __name__ == "__main__":
self.app.run()
if run == "classic":
if __name__ == "__main__":
self.app.run()
elif run == "auto":
if __name__ == "__main__":
self.app.run()
webbrowser.open("http://127.0.0.1:5000/")
else:
print("Tanımlanmayan mod")






0 comments on commit fb96c46

Please sign in to comment.