mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-30 09:59:02 -04:00
beginning to refactor onionshare_gui to work with multiple files (#66)
This commit is contained in:
parent
3f59fe7af0
commit
78f6c31061
8 changed files with 214 additions and 40 deletions
10
onionshare_gui/common.py
Normal file
10
onionshare_gui/common.py
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue