mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
Update vendored windows libs
This commit is contained in:
parent
f61c211655
commit
b1cefa94e5
226 changed files with 33472 additions and 11882 deletions
|
@ -3,15 +3,19 @@ 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')
|
||||
""" """
|
||||
# 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