Commit 1352eaf7 authored by Gero Müller's avatar Gero Müller
Browse files

compatibility fixes

parent 8b23ea36
......@@ -13,13 +13,14 @@ for wroot, wdirs, wfiles in os.walk("vispa"):
if name == "":
packages.append(wroot.replace(os.sep, ".").strip(". \t\n\r"))
base, ext = os.path.splitext(name)
if not ext in ignore_extensions:
if ext not in ignore_extensions:
files.append(os.path.join(wroot[6:], name))
for wroot, wdirs, wfiles in os.walk(os.path.join("vispa" , "models", "alembic", "versions")):
versions_path = os.path.join("vispa", "models", "alembic", "versions")
for wroot, wdirs, wfiles in os.walk(versions_path):
for name in wfiles:
if name.endswith(".py"):
files.append(wroot.strip(". \t\n\r")+os.sep+name)
files.append(os.path.join(wroot[6:], name))
......@@ -8,8 +8,7 @@ import logging
import os
import sys
from sqlalchemy.orm.scoping import scoped_session
from sqlalchemy.orm.session import sessionmaker
from sqlalchemy.orm import scoped_session, sessionmaker
from vispa.models import Base as sql_base
from vispa.models.preference import *
from vispa.models.stats import *
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment