mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
use full path in backend_pb2 import
This commit is contained in:
parent
52ca4ab854
commit
8e93b0ee38
2 changed files with 2 additions and 4 deletions
|
@ -28,9 +28,6 @@ py_binary(
|
||||||
"genbackend.py",
|
"genbackend.py",
|
||||||
"//pylib/anki:backend_pb2",
|
"//pylib/anki:backend_pb2",
|
||||||
],
|
],
|
||||||
imports = [
|
|
||||||
"../anki",
|
|
||||||
],
|
|
||||||
visibility = ["//pylib:__subpackages__"],
|
visibility = ["//pylib:__subpackages__"],
|
||||||
deps = [
|
deps = [
|
||||||
requirement("black"),
|
requirement("black"),
|
||||||
|
|
|
@ -5,9 +5,10 @@ import os
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import backend_pb2 as pb
|
|
||||||
import stringcase
|
import stringcase
|
||||||
|
|
||||||
|
import pylib.anki.backend_pb2 as pb
|
||||||
|
|
||||||
TYPE_DOUBLE = 1
|
TYPE_DOUBLE = 1
|
||||||
TYPE_FLOAT = 2
|
TYPE_FLOAT = 2
|
||||||
TYPE_INT64 = 3
|
TYPE_INT64 = 3
|
||||||
|
|
Loading…
Reference in a new issue