define stib for mycfg in case it's missing; for easier interaction with promnesia
This commit is contained in:
parent
227d6e3a1d
commit
9cd93e5c05
3 changed files with 9 additions and 0 deletions
|
@ -5,3 +5,8 @@ try:
|
|||
except ImportError:
|
||||
import warnings
|
||||
warnings.warn("mycfg package isn't found! That might result in issues")
|
||||
|
||||
from . import fake_mycfg as mycfg # type: ignore[no-redef]
|
||||
import sys
|
||||
sys.modules['mycfg'] = mycfg
|
||||
del sys
|
||||
|
|
4
my/fake_mycfg/__init__.py
Normal file
4
my/fake_mycfg/__init__.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
# TODO maybe, reuse mycfg_template here?
|
||||
|
||||
class paths:
|
||||
pass
|
0
my/fake_mycfg/repos/.gitkeep
Normal file
0
my/fake_mycfg/repos/.gitkeep
Normal file
Loading…
Add table
Reference in a new issue