Browse Source

Importing version from lizard in web_methods was causing a circular import (see http://stackoverflow.com/a/22210807). Importing the version from web_methods is inane, importing from a dedicated version file creates a useless file. So I guess we'll duplicate code... It shouldn't change unless I change *how* I obtain the version, anyway.

master
Abrax 3 years ago
parent
commit
4f5ccc0f24
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      web_methods.py

+ 2
- 2
web_methods.py View File

@@ -1,11 +1,11 @@
import json
import re
import requests
from lizard import version
from file_io import *
from file_io import generate_json_path
from json_methods import extract_filenames
import pkg_resources

version = pkg_resources.require("lizard")[0].version
user_agent = 'Lizard v{}: https://git.teknik.io/abrax/lizard'.format(version)



Loading…
Cancel
Save