Browse Source

Changed start message

pull/11/head
Koyu Berteon 2 years ago
parent
commit
fda622e22e
3 changed files with 16 additions and 2 deletions
  1. 1
    2
      bottle.py
  2. BIN
      bottle.pyc
  3. 15
    0
      dir.py

+ 1
- 2
bottle.py View File

@@ -3506,8 +3506,7 @@ def run(app=None,

server.quiet = server.quiet or quiet
if not server.quiet:
_stderr("Bottle v%s server starting up (using %s)...\n" %
(__version__, repr(server)))
_stderr("Yggdrasil server starting up...\n")
_stderr("Listening on http://%s:%d/\n" %
(server.host, server.port))
_stderr("Hit Ctrl-C to quit.\n\n")

BIN
bottle.pyc View File


+ 15
- 0
dir.py View File

@@ -0,0 +1,15 @@
import time
import os
from os import listdir
from os.path import isfile, join
from collections import OrderedDict

os.chdir("dir")
while True:
files = [f for f in listdir(os.getcwd()) if isfile(join(os.getcwd(), f))]
filesn = "\n".join(files)
filesn = filesn.replace(".password", "")
filesn = "\n".join(list(OrderedDict.fromkeys(filesn.split("\n"))))
print filesn
time.sleep(0.2)
os.system("clear")

Loading…
Cancel
Save