Commit bffc08cf by Csók Tamás

client: flake8 correction

parent 4026505c
...@@ -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': {
......
...@@ -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': {
......
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