Git Product home page Git Product logo

Comments (10)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
Correction, T: should translate to xbmc.translatePath( "special://temp" ), see

http://xbmc.org/jmarshall/2009/02/10/changes-to-paths-what-it-means-for-scripts-
and-
plugins/

Original comment by [email protected] on 26 Apr 2009 at 12:10

from xbmc-addons.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
yes sry you are right about temp dir. But "xbmc.translatePath" not working. 
Using
"os.path.join" enough.

Original comment by [email protected] on 27 Apr 2009 at 10:27

from xbmc-addons.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
BASE_DATA_PATH = os.path.join( "special://temp", "script_data", __scriptname__ )
BASE_SETTINGS_PATH = os.path.join( "special://profile", "script_data", 
__scriptname__ )

Original comment by [email protected] on 27 Apr 2009 at 10:31

from xbmc-addons.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
Dear all,

After changing the path's I still get the following errors (in the 19778 
Windows 
Built of XBMC):

23:43:52 T:224 M:2288435200  NOTICE: _create_base_paths()
23:43:52 T:224 M:2288435200  NOTICE:   File "C:\Program Files\XBMC\scripts
\OpenSubtitles\resources\lib\utilities.py", line 32, in _create_base_paths
23:43:52 T:224 M:2288435200  NOTICE: 
23:43:52 T:224 M:2288435200  NOTICE: os.makedirs( BASE_DATA_PATH )
23:43:52 T:224 M:2288435200  NOTICE:   File "special:\\xbmc\system\python
\python24.zlib\os.py", line 156, in makedirs
23:43:52 T:224 M:2288435200  NOTICE:   File "special:\\xbmc\system\python
\python24.zlib\os.py", line 156, in makedirs
23:43:52 T:224 M:2288435200  NOTICE:   File "special:\\xbmc\system\python
\python24.zlib\os.py", line 156, in makedirs
23:43:52 T:224 M:2288435200  NOTICE:   File "special:\\xbmc\system\python
\python24.zlib\os.py", line 159, in makedirs
23:43:52 T:224 M:2288435200  NOTICE: OSError
23:43:52 T:224 M:2288435200  NOTICE: :
23:43:52 T:224 M:2288435200  NOTICE: [Errno 0] Error: 'special:'
23:43:52 T:224 M:2288435200  NOTICE: 
23:43:52 T:224 M:2288435200   ERROR: Scriptresult: Error

I have added the xbmc.translatePath and it works ok:

BASE_DATA_PATH = xbmc.translatePath( os.path.join( "special://temp", 
"script_data", 
__scriptname__ ) )
BASE_SETTINGS_PATH = xbmc.translatePath( os.path.join( "special://profile", 
"script_data", __scriptname__ ) )

I am no coder, so not sure what would be the permanent fix, as the 
xbmc.translatePath
() might disappear...

Regards,

Nika.

Original comment by [email protected] on 28 Apr 2009 at 9:57

from xbmc-addons.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024

Original comment by [email protected] on 3 Jun 2009 at 11:57

  • Changed state: Done

from xbmc-addons.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
This in not fixed. Reopen pls.

Original comment by [email protected] on 4 Jun 2009 at 12:12

from xbmc-addons.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024

Original comment by rwparris2 on 4 Jun 2009 at 5:06

  • Changed state: New

from xbmc-addons.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
rwparris can you handle this.

Original comment by [email protected] on 11 Jun 2009 at 3:08

from xbmc-addons.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024

Original comment by rwparris2 on 1 Nov 2009 at 11:28

  • Changed state: Accepted

from xbmc-addons.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
This issue was closed by revision r1390.

Original comment by rwparris2 on 1 Nov 2009 at 11:28

  • Changed state: Fixed

from xbmc-addons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.