Merge pull request #207 from lazlolazlolazlo/docstrings

Add some missing docstrings.
This commit is contained in:
Micah Lee 2015-11-08 12:44:30 -08:00
commit d67ca2c406
3 changed files with 34 additions and 0 deletions

View file

@ -22,6 +22,9 @@ from onionshare import helpers
def get_onionshare_gui_dir():
"""
Returns the OnionShare gui directory.
"""
p = helpers.get_platform()
if p == 'Darwin':
onionshare_gui_dir = os.path.dirname(__file__)
@ -33,6 +36,9 @@ onionshare_gui_dir = get_onionshare_gui_dir()
def get_image_path(filename):
"""
Returns the OnionShare image path.
"""
p = helpers.get_platform()
if p == 'Linux' or p == 'Tails':
prefix = os.path.join(sys.prefix, 'share/onionshare/images')