mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 13:53:15 -07:00
Move Windows libs to libs/windows
This commit is contained in:
parent
3975aaceb2
commit
3a692c94a5
684 changed files with 4 additions and 1 deletions
17
libs/win/jaraco/windows/vpn.py
Normal file
17
libs/win/jaraco/windows/vpn.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
import os
|
||||
from path import Path
|
||||
|
||||
|
||||
def install_pptp(name, param_lines):
|
||||
"""
|
||||
"""
|
||||
# or consider using the API:
|
||||
# http://msdn.microsoft.com/en-us/library/aa446739%28v=VS.85%29.aspx
|
||||
pbk_path = (
|
||||
Path(os.environ['PROGRAMDATA'])
|
||||
/ 'Microsoft' / 'Network' / 'Connections' / 'pbk' / 'rasphone.pbk')
|
||||
pbk_path.dirname().makedirs_p()
|
||||
with open(pbk_path, 'a') as pbk:
|
||||
pbk.write('[{name}]\n'.format(name=name))
|
||||
pbk.writelines(param_lines)
|
||||
pbk.write('\n')
|
Loading…
Add table
Add a link
Reference in a new issue