Commit 100a8c56 authored by Jondy Zhao's avatar Jondy Zhao

use windows path for script ovpn-client and ovpn-server

parent c34ae0c1
import logging, errno, os, sys
import logging, errno, os, subprocess, sys
from . import utils
here = os.path.realpath(os.path.dirname(__file__))
script_ext = '.exe' if sys.platform == 'cygwin' else ''
if sys.platform == 'cygwin':
here = subprocess.check_output(['cygpath', '-m', here]).strip()
script_ext = '.exe'
else:
script_ext = ''
ovpn_server = os.path.join(here, 'ovpn-server' + script_ext)
ovpn_client = os.path.join(here, 'ovpn-client' + script_ext)
ovpn_log = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment