rendered paste body#!/usr/bin/python
def Map2drive(group, letter, path, name, label):
print "Map2drive"
print group, letter, path, name, label
FILE = open("zeegui.kix")
script = FILE.readlines()
FILE.close()
mappings = []
for line in script:
if line.find("Map2drive") > -1 and line.find(";") == -1 and line.find("Function") == -1:
mappings.append(line.strip(" \t\n"))
-------------------------------------------------------------------
brm@linux01:~> python test.py
Traceback (most recent call last):
File "test.py", line 16, in ?
exec(mappings[0])
File "<string>", line 1
Map2drive("Stadsdeel","H:","$homefolder","uw persoonlijke map","Data van @Fullname")
^
SyntaxError: unexpected EOF while parsing