mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 19:52:50 -03:00
Merge branch 'delirious-lettuce-remove_platform_re' into develop
This commit is contained in:
commit
c0ba9ab278
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,6 @@ import inspect
|
||||||
import os
|
import os
|
||||||
import platform
|
import platform
|
||||||
import random
|
import random
|
||||||
import re
|
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
|
@ -58,10 +57,11 @@ def get_platform():
|
||||||
Returns the platform OnionShare is running on.
|
Returns the platform OnionShare is running on.
|
||||||
"""
|
"""
|
||||||
plat = platform.system()
|
plat = platform.system()
|
||||||
if re.match('^.*BSD$', plat):
|
if plat.endswith('BSD'):
|
||||||
plat = 'BSD'
|
plat = 'BSD'
|
||||||
return plat
|
return plat
|
||||||
|
|
||||||
|
|
||||||
def get_resource_path(filename):
|
def get_resource_path(filename):
|
||||||
"""
|
"""
|
||||||
Returns the absolute path of a resource, regardless of whether OnionShare is installed
|
Returns the absolute path of a resource, regardless of whether OnionShare is installed
|
||||||
|
|
Loading…
Reference in a new issue