Browse Source

now works as a package!

atexit v1.0
Raphael Roberts 7 years ago
parent
commit
9f14d93231
  1. 1
      ctabus/internal/config.py
  2. 2
      ctabus/internal/disk_cache.py
  3. 1
      requirements.txt
  4. 2
      setup.py

1
ctabus/internal/config.py

@ -4,6 +4,7 @@ import appdirs
app_dirs = appdirs.AppDirs('ctabus')
config_dir = app_dirs.user_config_dir
cache_path = app_dirs.user_cache_dir
try:
with open(os.path.join(config_dir, 'api.txt')) as file:
API_KEY = file.read().rstrip()

2
ctabus/internal/disk_cache.py

@ -1,7 +1,7 @@
import pickle
import os
import lzma
from ctabus.config import cache_path
from ctabus.internal.config import cache_path
if not os.path.exists(cache_path):
os.mkdir(cache_path)

1
requirements.txt

@ -1,3 +1,4 @@
edlib
python-dateutil
terminaltables
appdirs

2
setup.py

@ -1,7 +1,7 @@
from setuptools import setup
with open('requirements.txt') as file:
INSTALL_REQUIRES = file.rstrip().split('\n')
INSTALL_REQUIRES = file.read().rstrip().split('\n')
setup(
name='ctabus',

Loading…
Cancel
Save