Add some missing docstrings.

This commit is contained in:
Lazlo Westerhof 2015-06-25 21:55:29 +02:00
parent d50601f5bd
commit 7fada800f3
3 changed files with 36 additions and 0 deletions

View file

@ -21,6 +21,9 @@ import os, sys, inspect, platform
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__)
@ -32,6 +35,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')