Rev 1727 | Rev 1991 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1727 | Rev 1935 | ||
|---|---|---|---|
| Line 268... | Line 268... | ||
| 268 | 268 | ||
| 269 | def addModule(moduleName): |
269 | def addModule(moduleName): |
| 270 | print "Trying to add module " + moduleName |
270 | print "Trying to add module " + moduleName |
| 271 | 271 | ||
| 272 | try: |
272 | try: |
| - | 273 | # the following creates symlinks to <path to modulemanager>/../../EmbeddedSoftware/AVR/module |
|
| - | 274 | # and <path to modulemanager> is an absolute path which makes the symlink similar to this: |
|
| - | 275 | # act_dimmer230 -> /home/arune/Documents/HomeAutomation/PcSoftware/scripts/../../EmbeddedSoftware/AVR/module/act_dimmer230 |
|
| 273 |
|
276 | #os.symlink(moddir + "/" + moduleName, localmoddir + "/" + moduleName) |
| - | 277 | # instead symlink to relative path instead |
|
| - | 278 | os.symlink("../../../module/" + moduleName, localmoddir + "/" + moduleName) |
|
| 274 | print "Added module successfully" |
279 | print "Added module successfully" |
| 275 | except OSError, (errno, strerror): |
280 | except OSError, (errno, strerror): |
| 276 | if errno == 17: |
281 | if errno == 17: |
| 277 | print "A link, file or directory named " + moduleName + " is already present in the modules directory, not linking" |
282 | print "A link, file or directory named " + moduleName + " is already present in the modules directory, not linking" |
| 278 | else: |
283 | else: |