forked from platypush/platypush
Added get_src_root utility function.
This commit is contained in:
parent
1ef0d804db
commit
b10ccdb313
1 changed files with 9 additions and 0 deletions
|
@ -646,4 +646,13 @@ def get_remaining_timeout(
|
|||
return cls(max(0, timeout - (time.time() - start)))
|
||||
|
||||
|
||||
def get_src_root() -> str:
|
||||
"""
|
||||
:return: The root source folder of the application.
|
||||
"""
|
||||
import platypush
|
||||
|
||||
return os.path.dirname(inspect.getfile(platypush))
|
||||
|
||||
|
||||
# vim:sw=4:ts=4:et:
|
||||
|
|
Loading…
Reference in a new issue