Skip to content

Commit

Permalink
[Mod] 改进版本号获取
Browse files Browse the repository at this point in the history
  • Loading branch information
vnpy committed Oct 24, 2021
1 parent 43466b1 commit dd602e9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions vnpy_ctp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

try:
from .gateway import CtpGateway
except ImportError:
pass


import importlib_metadata

from .gateway import CtpGateway

__version__ = importlib_metadata.version("vnpy_ctp")

try:
__version__ = importlib_metadata.version("vnpy_ctp")
except importlib_metadata.PackageNotFoundError:
__version__ = "dev"

0 comments on commit dd602e9

Please sign in to comment.