mirror of
https://github.com/tomasriveral/nixpkgs-notifier.git
synced 2026-08-12 02:38:37 +02:00
fix: config use global variables
This commit is contained in:
@@ -9,6 +9,8 @@ from time import sleep
|
|||||||
import subprocess
|
import subprocess
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
global matrixPing, matrixUserToPing, matrixUserServer, matrixRoom
|
||||||
|
|
||||||
state_dir = Path(
|
state_dir = Path(
|
||||||
os.environ.get("XDG_STATE_HOME", Path.home() / ".local" / "state")
|
os.environ.get("XDG_STATE_HOME", Path.home() / ".local" / "state")
|
||||||
) / "nixpkgs-notifier"
|
) / "nixpkgs-notifier"
|
||||||
|
|||||||
Reference in New Issue
Block a user