Skip to content

Commit

Permalink
catch when apsw isn't installed and auto-install it
Browse files Browse the repository at this point in the history
  • Loading branch information
schae234 committed May 2, 2019
1 parent 0ce54e9 commit 298173b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion minus80/Freezable.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,21 @@
# Suppress the warning until the next wersion
import bcolz as bcz

import apsw as lite
import os as os
import numpy as np
import pandas as pd

from .Config import cf
from contextlib import contextmanager

try:
import apsw as lite
except ModuleNotFoundError as e:
from .Tools import install_apsw
install_apsw()
import apsw as lite


__all__ = ['Freezable']

class sqlite_dict(object):
Expand Down

0 comments on commit 298173b

Please sign in to comment.