Skip to content

Commit

Permalink
Remove old school project layout
Browse files Browse the repository at this point in the history
  • Loading branch information
artnez committed Jan 21, 2014
1 parent 8ee1d54 commit 00ea829
Show file tree
Hide file tree
Showing 67 changed files with 9 additions and 65 deletions.
17 changes: 0 additions & 17 deletions bin/handler.wsgi

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 2 additions & 3 deletions src/faceoff/db.py → faceoff/db.py
Expand Up @@ -18,7 +18,7 @@
from hashlib import sha1
from random import random, shuffle
from time import time
from natsort import natsort
from natsort import natsorted
from functools import wraps

_curdir = os.path.dirname(__file__)
Expand Down Expand Up @@ -94,8 +94,7 @@ def get_schema_files(schema_path):
Returns a list of schema SQL files, sorted by version number.
"""
files = glob(os.path.join(schema_path, '*.sql'))
natsort(files)
return files
return natsorted(files)


def get_schema_sql(schema_path):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
38 changes: 0 additions & 38 deletions lib/natsort.py

This file was deleted.

3 changes: 2 additions & 1 deletion requirements.txt
@@ -1,4 +1,5 @@
Flask==0.8.1
WTForms==0.6.3
trueskill==0.4.1
flake8==2.1.0
natsort==3.0.2
trueskill==0.4.1
File renamed without changes.
File renamed without changes.
11 changes: 5 additions & 6 deletions bin/run-server.py → scripts/run-server.py
Expand Up @@ -7,12 +7,11 @@
License: MIT, see LICENSE for details
"""

import sys
import os
from sys import path
from os import environ
from os.path import dirname, join

project_dir = os.path.realpath(os.path.dirname(os.path.dirname(__file__)))
sys.path.insert(0, os.path.join(project_dir, 'src'))
sys.path.insert(1, os.path.join(project_dir, 'lib'))
path.append(join(dirname(__file__), '..'))

from argparse import ArgumentParser
parser = ArgumentParser(usage='%(prog)s [options]', argument_default='')
Expand All @@ -27,7 +26,7 @@
parser.add_argument('--log-filter', metavar='<string>', dest='FACEOFF_LOG_FILTER')
parser.add_argument('--log-ignore', metavar='<string>', dest='FACEOFF_LOG_IGNORE')
args = parser.parse_args()
os.environ.update(vars(args))
environ.update(vars(args))

from faceoff import app
app.run(args.FACEOFF_HOST, int(args.FACEOFF_PORT), threaded=True)

0 comments on commit 00ea829

Please sign in to comment.