mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Allow customisation using an env var.
This commit is contained in:
parent
2aaf094f96
commit
2282db5af7
1 changed files with 5 additions and 1 deletions
|
@ -5,6 +5,9 @@
|
||||||
# https://stackoverflow.com/questions/22583035
|
# https://stackoverflow.com/questions/22583035
|
||||||
# Thanks!
|
# Thanks!
|
||||||
|
|
||||||
|
import os
|
||||||
|
import os.path
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from PySide2.QtGui import QPixmap # noqa: F401
|
from PySide2.QtGui import QPixmap # noqa: F401
|
||||||
from PySolFC_KCard import MyKCardDeck
|
from PySolFC_KCard import MyKCardDeck
|
||||||
|
@ -25,7 +28,8 @@ class SVGManager:
|
||||||
def __init__(self, filename):
|
def __init__(self, filename):
|
||||||
self.filename = filename
|
self.filename = filename
|
||||||
# self.svg = Rsvg.Handle().new_from_file(filename)
|
# self.svg = Rsvg.Handle().new_from_file(filename)
|
||||||
self.d = MyKCardDeck("svg-jolly-royal")
|
self.d = MyKCardDeck(
|
||||||
|
os.path.basename(os.getenv("PYSOL_SVG_THEME", "svg-jolly-royal")))
|
||||||
|
|
||||||
# Taken from https://stackoverflow.com/questions/44471795
|
# Taken from https://stackoverflow.com/questions/44471795
|
||||||
# Under MIT License - thanks.
|
# Under MIT License - thanks.
|
||||||
|
|
Loading…
Add table
Reference in a new issue