mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
11 lines
343 B
Python
11 lines
343 B
Python
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()
|