Commit 045b5b30 by tarokkk

laborclient: mkfolder proper permissions

parent 5be84216
...@@ -151,9 +151,9 @@ class Browser: ...@@ -151,9 +151,9 @@ class Browser:
neptun = self.params["neptun"] neptun = self.params["neptun"]
host = self.params["host"] host = self.params["host"]
try: try:
os.makedirs(self.folder, 0644) os.makedirs(self.folder)
except: except:
pass print "Error"
result = subprocess.call(['/usr/bin/sshfs', '-o', 'IdentityFile='+self.private_key_file+',StrictHostKeyChecking=no', neptun+"@"+host+":home", self.folder]) result = subprocess.call(['/usr/bin/sshfs', '-o', 'IdentityFile='+self.private_key_file+',StrictHostKeyChecking=no', neptun+"@"+host+":home", self.folder])
#print result #print result
def umount_sshfs_folder(self): def umount_sshfs_folder(self):
......
...@@ -5,9 +5,11 @@ import subprocess ...@@ -5,9 +5,11 @@ import subprocess
import os import os
import sys import sys
import gtk import gtk
import gobject
class RDP: class RDP:
def __init__(self, uri): def __init__(self, uri):
gobject.threads_init()
self.scheme, self.username, self.password, self.host, self.port = uri.split(':',4) self.scheme, self.username, self.password, self.host, self.port = uri.split(':',4)
def dialog_box(self,text): def dialog_box(self,text):
# Window = gtk.Window() # Window = gtk.Window()
......
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