beginning to refactor onionshare_gui to work with multiple files (#66)

This commit is contained in:
Micah Lee 2014-08-27 14:21:08 -07:00
parent 3f59fe7af0
commit 78f6c31061
8 changed files with 214 additions and 40 deletions

10
onionshare_gui/common.py Normal file
View file

@ -0,0 +1,10 @@
import os, inspect, platform
def get_onionshare_gui_dir():
if platform.system() == 'Darwin':
onionshare_gui_dir = os.path.dirname(__file__)
else:
onionshare_gui_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
return onionshare_gui_dir
onionshare_gui_dir = get_onionshare_gui_dir()