mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-11 20:29:15 -05:00
Only import pwd in macOS, because it does not exist in Windows
This commit is contained in:
parent
bee64d570e
commit
f5919a242d
@ -18,8 +18,11 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
import pwd
|
|
||||||
import json
|
import json
|
||||||
|
import platform
|
||||||
|
|
||||||
|
if platform.system() == "Darwin":
|
||||||
|
import pwd
|
||||||
|
|
||||||
|
|
||||||
class ModeSettings:
|
class ModeSettings:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user