Mapping Drives & Files in Windows 7

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
TheMonkeyKing Offline
Junior Member
Posts: 35
Joined: Mar 2012
Reputation: 0
Question  Mapping Drives & Files in Windows 7 Post: #1
Okay, I am a dumbass. I've looked for answers but either I haven't found what I'm looking for or I haven't searched enough.

What I want to do: I want an add-on default.py to map to a particular file within my Windows 7 build of XBMC.

Code:
BASE = [
#'http://www.outsidelinks.com/list.xml',
'C:\Users\House\AppData\Roaming\XBMC\addons\plugin.testbuild\testfile001.xml',
#'http://localhost/links.xml',
#'file:///home/yourname/list.xml',
]
As you can see I want to pull in a file from XBMC appdata subfolder, but stating it like that does not work. Any ideas on how to include the file?
(This post was last modified: 2012-04-29 22:43 by TheMonkeyKing.)
find quote
Bstrdsmkr Offline
Fan
Posts: 711
Joined: Oct 2010
Reputation: 13
Post: #2
Use the library="" parameter in your addon.xml to set the file which is ran when the addon is launched.

If you're trying to specify a python file to import, use pythons __import__() method
find quote