Subversion Repositories HomeAutomation

Rev

Rev 819 | Rev 822 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 819 Rev 820
Line 237... Line 237...
237
 
237
 
238
def addModule(moduleName):
238
def addModule(moduleName):
239
	print "Trying to add module " + moduleName
239
	print "Trying to add module " + moduleName
240
	
240
	
241
	try:
241
	try:
242
		os.symlink(moddir + "/" + moduleName, localmoddir + "/" + moduleName)
242
		os.symlink("../" + moddir + "/" + moduleName, localmoddir + "/" + moduleName)
-
 
243
		print "Added module successfully"
243
	except OSError, (errno, strerror):
244
	except OSError, (errno, strerror):
244
		if errno == 17:
245
		if errno == 17:
245
			print "A link, file or directory named " + moduleName + " is already present in the modules directory, not linking"
246
			print "A link, file or directory named " + moduleName + " is already present in the modules directory, not linking"
246
		else:
247
		else:
247
			raise
248
			raise