Upload files to 'project_manager'
This commit is contained in:
parent
5e6b0380aa
commit
b1dcb290d9
2 changed files with 10 additions and 3 deletions
|
@ -100,7 +100,7 @@ def layer(win):
|
|||
r = http.request('GET', url, preload_content=False)
|
||||
|
||||
try:
|
||||
os.mkdir(filename[:filename.rfind("/")])
|
||||
os.makedirs(filename[:filename.rfind("/")])
|
||||
except:
|
||||
pass
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ import cairo
|
|||
# Own modules
|
||||
from settings import settings
|
||||
from settings import talk
|
||||
from settings import oscalls
|
||||
from project_manager import pm_project
|
||||
|
||||
#UI modules
|
||||
|
@ -140,7 +141,13 @@ def layer(win):
|
|||
layer.show_text(str(version)+" "+sufix)
|
||||
|
||||
def do():
|
||||
os.system("xdg-open "+link.replace("(", "\(").replace(")", "\)"))
|
||||
|
||||
# There is a lot of problems with the BASH syntax. So if some pages
|
||||
# do not load. It's probably some \ missing in some place. Click on
|
||||
# the button and look in the console. Bash usually tells the error.
|
||||
|
||||
oscalls.Open(link.replace("(", "\(").replace(")", "\)")\
|
||||
.replace("'", "\\'"))
|
||||
|
||||
UI_elements.roundrect(layer, win,
|
||||
win.current["w"]/2-200,
|
||||
|
@ -196,7 +203,7 @@ def layer(win):
|
|||
|
||||
def do():
|
||||
gitlink = "https://notabug.org/jyamihud/VCStudio/commits/master/"
|
||||
os.system("xdg-open "+gitlink+filename)
|
||||
oscalls.Open(gitlink+filename)
|
||||
|
||||
UI_elements.roundrect(layer, win,
|
||||
win.current["w"]/2-220,
|
||||
|
|
Loading…
Reference in a new issue