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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
bffc08cf
authored
Sep 03, 2014
by
Csók Tamás
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client: flake8 correction
parent
4026505c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
32 deletions
+32
-32
src/iss/installer/win_install.py
+16
-16
src/python/win_install.py
+16
-16
No files found.
src/iss/installer/win_install.py
View file @
bffc08cf
...
@@ -39,7 +39,7 @@ def parse_arguments():
...
@@ -39,7 +39,7 @@ def parse_arguments():
local_default
=
(
windowsclasses
.
DecideArchitecture
.
GetProgramFiles32
()
local_default
=
(
windowsclasses
.
DecideArchitecture
.
GetProgramFiles32
()
+
"
\\
CIRCLE
\\
"
)
+
"
\\
CIRCLE
\\
"
)
if
(
not
os
.
path
.
exists
(
local_default
[:
-
1
])
and
if
(
not
os
.
path
.
exists
(
local_default
[:
-
1
])
and
os
.
path
.
exists
(
os
.
environ
[
'APPDATA'
]
+
"
\\
CIRCLE"
)):
os
.
path
.
exists
(
os
.
environ
[
'APPDATA'
]
+
"
\\
CIRCLE"
)):
local_default
=
os
.
environ
[
'APPDATA'
]
+
"
\\
CIRCLE
\\
"
local_default
=
os
.
environ
[
'APPDATA'
]
+
"
\\
CIRCLE
\\
"
parser
.
add_argument
(
parser
.
add_argument
(
"-l"
,
"--location"
,
help
=
"Location of the client files in the system"
,
"-l"
,
"--location"
,
help
=
"Location of the client files in the system"
,
...
@@ -136,33 +136,33 @@ def main():
...
@@ -136,33 +136,33 @@ def main():
shutil
.
copy
(
location
,
args
.
location
)
shutil
.
copy
(
location
,
args
.
location
)
print
"Creating custom URL protocol handlers"
print
"Creating custom URL protocol handlers"
try
:
try
:
custom_ssh
=
OrderedDict
(
custom_ssh
=
OrderedDict
(
[
[
(
'ssh'
,
[
"default"
,
(
'ssh'
,
[
"default"
,
"URL:ssh Protocol"
,
"URL:ssh Protocol"
,
"URL Protocol"
,
"URL Protocol"
,
""
]),
""
]),
(
'ssh
\\
URL Protocol'
,
""
),
(
'ssh
\\
URL Protocol'
,
""
),
(
'ssh
\\
DefaultIcon'
,
args
.
location
+
"cloud.ico"
),
(
'ssh
\\
DefaultIcon'
,
args
.
location
+
"cloud.ico"
),
(
'ssh
\\
shell'
,
{
'open'
:
{
(
'ssh
\\
shell'
,
{
'open'
:
{
'command'
:
"
\"
pythonw.exe
\"
\"
%
s"
%
args
.
location
'command'
:
"
\"
pythonw.exe
\"
\"
%
s"
%
args
.
location
+
"cloud.py
\"
\"
%1
\"
"
}})])
+
"cloud.py
\"
\"
%1
\"
"
}})])
custom_protocol_register
(
custom_ssh
)
custom_protocol_register
(
custom_ssh
)
custom_rdp
=
OrderedDict
(
custom_rdp
=
OrderedDict
(
[
[(
'rdp'
,
[
"default"
,
(
'rdp'
,
[
"default"
,
"URL:rdp Protocol"
,
"URL:rdp Protocol"
,
"URL Protocol"
,
"URL Protocol"
,
""
]),
""
]),
(
'rdp
\\
URL Protocol'
,
""
),
(
'rdp
\\
URL Protocol'
,
""
),
(
'rdp
\\
DefaultIcon'
,
args
.
location
+
"cloud.ico"
),
(
'rdp
\\
DefaultIcon'
,
args
.
location
+
"cloud.ico"
),
(
'rdp
\\
shell'
,
{
'open'
:
{
(
'rdp
\\
shell'
,
{
'open'
:
{
'command'
:
"
\"
pythonw.exe
\"
\"
%
s"
%
args
.
location
'command'
:
"
\"
pythonw.exe
\"
\"
%
s"
%
args
.
location
+
"cloud.py
\"
\"
%1
\"
"
}})])
+
"cloud.py
\"
\"
%1
\"
"
}})])
custom_protocol_register
(
custom_rdp
)
custom_protocol_register
(
custom_rdp
)
custom_nx
=
OrderedDict
(
custom_nx
=
OrderedDict
(
[
[
(
'nx'
,
[
"default"
,
(
'nx'
,
[
"default"
,
"URL:nx Protocol"
,
"URL:nx Protocol"
,
"URL Protocol"
,
"URL Protocol"
,
""
]),
""
]),
(
'nx
\\
URL Protocol'
,
""
),
(
'nx
\\
URL Protocol'
,
""
),
(
'nx
\\
DefaultIcon'
,
args
.
location
+
"cloud.ico"
),
(
'nx
\\
DefaultIcon'
,
args
.
location
+
"cloud.ico"
),
(
'nx
\\
shell'
,
{
'open'
:
{
(
'nx
\\
shell'
,
{
'open'
:
{
...
...
src/python/win_install.py
View file @
bffc08cf
...
@@ -39,7 +39,7 @@ def parse_arguments():
...
@@ -39,7 +39,7 @@ def parse_arguments():
local_default
=
(
windowsclasses
.
DecideArchitecture
.
GetProgramFiles32
()
local_default
=
(
windowsclasses
.
DecideArchitecture
.
GetProgramFiles32
()
+
"
\\
CIRCLE
\\
"
)
+
"
\\
CIRCLE
\\
"
)
if
(
not
os
.
path
.
exists
(
local_default
[:
-
1
])
and
if
(
not
os
.
path
.
exists
(
local_default
[:
-
1
])
and
os
.
path
.
exists
(
os
.
environ
[
'APPDATA'
]
+
"
\\
CIRCLE"
)):
os
.
path
.
exists
(
os
.
environ
[
'APPDATA'
]
+
"
\\
CIRCLE"
)):
local_default
=
os
.
environ
[
'APPDATA'
]
+
"
\\
CIRCLE
\\
"
local_default
=
os
.
environ
[
'APPDATA'
]
+
"
\\
CIRCLE
\\
"
parser
.
add_argument
(
parser
.
add_argument
(
"-l"
,
"--location"
,
help
=
"Location of the client files in the system"
,
"-l"
,
"--location"
,
help
=
"Location of the client files in the system"
,
...
@@ -136,33 +136,33 @@ def main():
...
@@ -136,33 +136,33 @@ def main():
shutil
.
copy
(
location
,
args
.
location
)
shutil
.
copy
(
location
,
args
.
location
)
print
"Creating custom URL protocol handlers"
print
"Creating custom URL protocol handlers"
try
:
try
:
custom_ssh
=
OrderedDict
(
custom_ssh
=
OrderedDict
(
[
[
(
'ssh'
,
[
"default"
,
(
'ssh'
,
[
"default"
,
"URL:ssh Protocol"
,
"URL:ssh Protocol"
,
"URL Protocol"
,
"URL Protocol"
,
""
]),
""
]),
(
'ssh
\\
URL Protocol'
,
""
),
(
'ssh
\\
URL Protocol'
,
""
),
(
'ssh
\\
DefaultIcon'
,
args
.
location
+
"cloud.ico"
),
(
'ssh
\\
DefaultIcon'
,
args
.
location
+
"cloud.ico"
),
(
'ssh
\\
shell'
,
{
'open'
:
{
(
'ssh
\\
shell'
,
{
'open'
:
{
'command'
:
"
\"
pythonw.exe
\"
\"
%
s"
%
args
.
location
'command'
:
"
\"
pythonw.exe
\"
\"
%
s"
%
args
.
location
+
"cloud.py
\"
\"
%1
\"
"
}})])
+
"cloud.py
\"
\"
%1
\"
"
}})])
custom_protocol_register
(
custom_ssh
)
custom_protocol_register
(
custom_ssh
)
custom_rdp
=
OrderedDict
(
custom_rdp
=
OrderedDict
(
[
[(
'rdp'
,
[
"default"
,
(
'rdp'
,
[
"default"
,
"URL:rdp Protocol"
,
"URL:rdp Protocol"
,
"URL Protocol"
,
"URL Protocol"
,
""
]),
""
]),
(
'rdp
\\
URL Protocol'
,
""
),
(
'rdp
\\
URL Protocol'
,
""
),
(
'rdp
\\
DefaultIcon'
,
args
.
location
+
"cloud.ico"
),
(
'rdp
\\
DefaultIcon'
,
args
.
location
+
"cloud.ico"
),
(
'rdp
\\
shell'
,
{
'open'
:
{
(
'rdp
\\
shell'
,
{
'open'
:
{
'command'
:
"
\"
pythonw.exe
\"
\"
%
s"
%
args
.
location
'command'
:
"
\"
pythonw.exe
\"
\"
%
s"
%
args
.
location
+
"cloud.py
\"
\"
%1
\"
"
}})])
+
"cloud.py
\"
\"
%1
\"
"
}})])
custom_protocol_register
(
custom_rdp
)
custom_protocol_register
(
custom_rdp
)
custom_nx
=
OrderedDict
(
custom_nx
=
OrderedDict
(
[
[
(
'nx'
,
[
"default"
,
(
'nx'
,
[
"default"
,
"URL:nx Protocol"
,
"URL:nx Protocol"
,
"URL Protocol"
,
"URL Protocol"
,
""
]),
""
]),
(
'nx
\\
URL Protocol'
,
""
),
(
'nx
\\
URL Protocol'
,
""
),
(
'nx
\\
DefaultIcon'
,
args
.
location
+
"cloud.ico"
),
(
'nx
\\
DefaultIcon'
,
args
.
location
+
"cloud.ico"
),
(
'nx
\\
shell'
,
{
'open'
:
{
(
'nx
\\
shell'
,
{
'open'
:
{
...
...
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