Eric Callahan
35396a5b2a
source_info: add within_git_repo method
...
Check for git files and folders, including those of parents.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-06-20 11:59:40 -04:00
Eric Callahan
1a5cf56532
utils: add direct fallback to load_system_module
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-06-07 19:45:39 -04:00
Eric Callahan
cd4fdfb7b6
utils: report additional git repo data
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-05-26 10:49:58 -04:00
Eric Callahan
80920dd872
utils: fix dist package check
...
Older versions of virtualenv include their own "site" module
that does not have the "getsitepackages" method. Add
a check to verify its presence before calling it.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-03-05 16:41:21 -05:00
Eric Callahan
2cda75ff2c
utils: simplify sentinel object
...
Use an enum to represent the sentinel rather than a singleton object.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-02-22 18:08:50 -05:00
Eric Callahan
79467e6484
utils: add source_info utility module
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-02-22 18:08:48 -05:00
Eric Callahan
277aecd305
moonraker: convert utils.py to a package
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-02-22 18:08:47 -05:00