mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00

Earlier today I pushed a change that split this code up into multiple repos, but that has proved to complicate things too much. So we're back to a single repo, except the individual submodules are better separated than they were before. The README files need updating again; I will push them out soon. Aside from splitting out the different modules, the sound code has moved from from anki to aqt.
13 lines
564 B
Bash
Executable file
13 lines
564 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# Anki bundles sip 5 generated typings that allow type checking Qt code when
|
|
# installed next to the original modules. Attempting to use them as a separate
|
|
# stubs distribution with MYPYPATH yielded a bunch of errors which I was not
|
|
# able to resolve. A solution that doesn't require modifying the python install
|
|
# would be welcome!
|
|
|
|
TOOLS="$(cd "`dirname "$0"`"; pwd)"
|
|
modDir=$(python -c 'import PyQt5, sys, os; print(os.path.dirname(sys.modules["PyQt5"].__file__))')
|
|
cmd="rsync -a $TOOLS/stubs/PyQt5/* $modDir/"
|
|
|
|
$cmd > /dev/null 2>&1 || sudo $cmd
|