mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-25 15:29:42 -05:00
Only import pwd in macOS, because it does not exist in Windows
This commit is contained in:
parent
1a6c2f3d63
commit
c0faa4a352
@ -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…
Reference in New Issue
Block a user