Skip to content

Commit

Permalink
Added docstring to setting path provider
Browse files Browse the repository at this point in the history
  • Loading branch information
thatsIch committed Dec 14, 2016
1 parent 5a04cb7 commit a6ff267
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions path/setting_path_provider.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
"""
This module provides methods for determine the settings path.
Rainmeter has an built-in variable called #SETTINGSPATH#.
With this you can directly route to the drive in which Rainmeter is contained.
If by some chance people use @Include on #SETTINGSPATH# it is still able to resolve
the path and open the include for you.
"""


import os
from functools import lru_cache

Expand All @@ -8,8 +18,7 @@

@lru_cache(maxsize=None)
def get_cached_setting_path():
"""Get the value of the #SETTINGSPATH# variable"""

"""Get the value of the #SETTINGSPATH# variable."""
rainmeterpath = get_cached_program_path()

if not rainmeterpath:
Expand Down

0 comments on commit a6ff267

Please sign in to comment.