mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix backend_pb2 race
This commit is contained in:
parent
264dd8f1ea
commit
95317a4f17
2 changed files with 2 additions and 7 deletions
|
@ -29,7 +29,7 @@ py_binary(
|
|||
"//pylib/anki:backend_pb2",
|
||||
],
|
||||
imports = [
|
||||
".",
|
||||
"../anki",
|
||||
],
|
||||
visibility = ["//pylib:__subpackages__"],
|
||||
deps = [
|
||||
|
|
|
@ -5,14 +5,9 @@ import os
|
|||
import re
|
||||
import sys
|
||||
|
||||
import backend_pb2 as pb
|
||||
import stringcase
|
||||
|
||||
try:
|
||||
import anki.backend_pb2 as pb
|
||||
except:
|
||||
# windows
|
||||
import anki.pylib.anki.backend_pb2 as pb
|
||||
|
||||
TYPE_DOUBLE = 1
|
||||
TYPE_FLOAT = 2
|
||||
TYPE_INT64 = 3
|
||||
|
|
Loading…
Reference in a new issue