Skip to content

Commit

Permalink
perf: window 取消命令行窗口
Browse files Browse the repository at this point in the history
  • Loading branch information
feng626 committed Aug 24, 2021
1 parent f6e3781 commit 34583b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Windows/JumpServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import json
import base64
import platform
import subprocess

'''
{
Expand All @@ -29,9 +30,9 @@ def handle_rdp(self):
with open(file_path, 'w') as f:
f.write(self.config)
if platform.system().lower() == 'windows':
os.system('mstsc.exe {0}'.format(file_path))
subprocess.call('mstsc.exe {0}'.format(file_path), shell=True)
else:
os.system('open {0}'.format(file_path))
subprocess.call('open {0}'.format(file_path), shell=True)

def run(self):
getattr(self, 'handle_' + self.protocol)()
Expand Down

0 comments on commit 34583b3

Please sign in to comment.