mirror of
https://github.com/powerline/powerline.git
synced 2025-09-25 19:09:10 +02:00
Unlink in place of appending x
This commit is contained in:
parent
b93ae8e8a2
commit
86f6943b08
@ -94,8 +94,8 @@ def get_expected_result(tmux_version,
|
|||||||
def main(attempts=3):
|
def main(attempts=3):
|
||||||
vterm_path = os.path.join(VTERM_TEST_DIR, 'path')
|
vterm_path = os.path.join(VTERM_TEST_DIR, 'path')
|
||||||
socket_path = os.path.abspath('tmux-socket-{0}'.format(attempts))
|
socket_path = os.path.abspath('tmux-socket-{0}'.format(attempts))
|
||||||
while os.path.exists(socket_path):
|
if os.path.exists(socket_path):
|
||||||
socket_path = socket_path + 'x'
|
os.unlink(socket_path)
|
||||||
rows = 50
|
rows = 50
|
||||||
cols = 200
|
cols = 200
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user