Commit 3523e319 by Csók Tamás

client: pythonw.exe got running directory prefix at the url handling scheme

parent 55a9b4dd
......@@ -10,6 +10,7 @@ import argparse
import subprocess
import pythoncom
import shutil
import sys
from win32com.shell import shell, shellcon
import windowsclasses
try:
......@@ -144,8 +145,9 @@ def main():
('circle\\URL Protocol', ""),
('circle\\DefaultIcon', args.location+"cloud.ico"),
('circle\\shell', {'open': {
'command': "\"pythonw.exe\" \"%s" % args.location
+ "cloud.py\" \"%1\""}})])
'command': r'"%s\pythonw.exe"' % sys.exec_prefix
+ r' "%s' % args.location
+ r'\cloud.py" "%1"'}})])
custom_protocol_register(custom_protocol)
except:
print "Error! URL Protocol handler installation aborted!"
......
......@@ -10,6 +10,7 @@ import argparse
import subprocess
import pythoncom
import shutil
import sys
from win32com.shell import shell, shellcon
import windowsclasses
try:
......@@ -144,8 +145,9 @@ def main():
('circle\\URL Protocol', ""),
('circle\\DefaultIcon', args.location+"cloud.ico"),
('circle\\shell', {'open': {
'command': "\"pythonw.exe\" \"%s" % args.location
+ "cloud.py\" \"%1\""}})])
'command': r'"%s\pythonw.exe"' % sys.exec_prefix
+ r' "%s' % args.location
+ r'\cloud.py" "%1"'}})])
custom_protocol_register(custom_protocol)
except:
print "Error! URL Protocol handler installation aborted!"
......
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 sign in to comment