Skip to content

Commit

Permalink
change scriptpath to usr/script
Browse files Browse the repository at this point in the history
wish to biki3
  • Loading branch information
madie66 committed Mar 22, 2015
1 parent 7a85192 commit 1be94ee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/python/Plugins/Extensions/Infopanel/ScriptRunner.py
Expand Up @@ -49,11 +49,11 @@ def __init__(self, session):
self["key_green"] = Button(_("Run"))

def populate_List(self):
if not path.exists('/usr/scripts'):
mkdir('/usr/scripts', 0755)
if not path.exists('/usr/script'):
mkdir('/usr/script', 0755)
self['lab1'].setText(_("Select a script to run:"))
del self.list[:]
f = listdir('/usr/scripts')
f = listdir('/usr/script')
for line in f:
parts = line.split()
pkg = parts[0]
Expand All @@ -72,9 +72,9 @@ def runscript(self):

def Run(self,answer):
if answer is True:
if not access("/usr/scripts/" + self.sel, X_OK):
chmod("/usr/scripts/" + self.sel, 0755)
cmd1 = ". /usr/scripts/" + self.sel
if not access("/usr/script/" + self.sel, X_OK):
chmod("/usr/script/" + self.sel, 0755)
cmd1 = ". /usr/script/" + self.sel
self.session.open(Console, title=self.sel, cmdlist = [cmd1], closeOnSuccess = False)

def myclose(self):
Expand Down

0 comments on commit 1be94ee

Please sign in to comment.