Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
0
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3523e319
authored
Sep 03, 2014
by
Csók Tamás
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client: pythonw.exe got running directory prefix at the url handling scheme
parent
55a9b4dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
src/iss/installer/win_install.py
+4
-2
src/python/win_install.py
+4
-2
No files found.
src/iss/installer/win_install.py
View file @
3523e319
...
@@ -10,6 +10,7 @@ import argparse
...
@@ -10,6 +10,7 @@ import argparse
import
subprocess
import
subprocess
import
pythoncom
import
pythoncom
import
shutil
import
shutil
import
sys
from
win32com.shell
import
shell
,
shellcon
from
win32com.shell
import
shell
,
shellcon
import
windowsclasses
import
windowsclasses
try
:
try
:
...
@@ -144,8 +145,9 @@ def main():
...
@@ -144,8 +145,9 @@ def main():
(
'circle
\\
URL Protocol'
,
""
),
(
'circle
\\
URL Protocol'
,
""
),
(
'circle
\\
DefaultIcon'
,
args
.
location
+
"cloud.ico"
),
(
'circle
\\
DefaultIcon'
,
args
.
location
+
"cloud.ico"
),
(
'circle
\\
shell'
,
{
'open'
:
{
(
'circle
\\
shell'
,
{
'open'
:
{
'command'
:
"
\"
pythonw.exe
\"
\"
%
s"
%
args
.
location
'command'
:
r'"
%
s\pythonw.exe"'
%
sys
.
exec_prefix
+
"cloud.py
\"
\"
%1
\"
"
}})])
+
r' "
%
s'
%
args
.
location
+
r'\cloud.py" "
%1
"'
}})])
custom_protocol_register
(
custom_protocol
)
custom_protocol_register
(
custom_protocol
)
except
:
except
:
print
"Error! URL Protocol handler installation aborted!"
print
"Error! URL Protocol handler installation aborted!"
...
...
src/python/win_install.py
View file @
3523e319
...
@@ -10,6 +10,7 @@ import argparse
...
@@ -10,6 +10,7 @@ import argparse
import
subprocess
import
subprocess
import
pythoncom
import
pythoncom
import
shutil
import
shutil
import
sys
from
win32com.shell
import
shell
,
shellcon
from
win32com.shell
import
shell
,
shellcon
import
windowsclasses
import
windowsclasses
try
:
try
:
...
@@ -144,8 +145,9 @@ def main():
...
@@ -144,8 +145,9 @@ def main():
(
'circle
\\
URL Protocol'
,
""
),
(
'circle
\\
URL Protocol'
,
""
),
(
'circle
\\
DefaultIcon'
,
args
.
location
+
"cloud.ico"
),
(
'circle
\\
DefaultIcon'
,
args
.
location
+
"cloud.ico"
),
(
'circle
\\
shell'
,
{
'open'
:
{
(
'circle
\\
shell'
,
{
'open'
:
{
'command'
:
"
\"
pythonw.exe
\"
\"
%
s"
%
args
.
location
'command'
:
r'"
%
s\pythonw.exe"'
%
sys
.
exec_prefix
+
"cloud.py
\"
\"
%1
\"
"
}})])
+
r' "
%
s'
%
args
.
location
+
r'\cloud.py" "
%1
"'
}})])
custom_protocol_register
(
custom_protocol
)
custom_protocol_register
(
custom_protocol
)
except
:
except
:
print
"Error! URL Protocol handler installation aborted!"
print
"Error! URL Protocol handler installation aborted!"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment