[meld/build-updates: 18/26] Remove now-unused importlib hack for meld.conf




commit 18d66b0c8e87ef239b6dea342055d0e703615b10
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Sep 11 09:52:16 2022 +1000

    Remove now-unused importlib hack for meld.conf

 maint | 17 -----------------
 1 file changed, 17 deletions(-)
---
diff --git a/maint b/maint
old mode 100644
new mode 100755
index cd04c772..af984de8
--- a/maint
+++ b/maint
@@ -2,13 +2,10 @@
 
 import collections
 import datetime
-import importlib.machinery
-import importlib.util
 import json
 import os
 import re
 import subprocess
-import sys
 import urllib.parse
 from pathlib import Path
 
@@ -17,20 +14,6 @@ import keyring
 import requests
 from jinja2 import Environment
 
-# Import system hackery to import conf.py.in without copying it to
-# have a .py suffix. This is entirely so that we can run from a git
-# checkout without any user intervention.
-
-loader = importlib.machinery.SourceFileLoader('meld.conf', 'meld/conf.py.in')
-spec = importlib.util.spec_from_loader(loader.name, loader)
-mod = importlib.util.module_from_spec(spec)
-loader.exec_module(mod)
-
-import meld  # noqa: E402 isort:skip
-meld.conf = mod
-sys.modules['meld.conf'] = mod
-import meld.conf  # noqa: E402 isort:skip
-
 APPLICATION_NAME = "meld"
 
 PO_DIR = "po"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]