×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    How to find my support files (c: vs e:)

    Hi,

    How can I install my script as-is on both C: and E:? Currently I have to hardcode path to supporting files and haven't figured out a way to make it generic:

    Code:
    if e32.in_emulator():
       FILE_PICKER = 'c:\\python\\pic.jpg'
       FILE_LOG = 'c:\\python\\log.txt'
    else:
       FILE_PICKER = 'e:\\python\\pic.jpg'
       FILE_LOG = 'e:\\python\\log.txt'
    Can I do something with sys.path? Now in emulator it contains:

    Code:
    ['c:\\private\\2000b1a5', 'c:\\resource', 'E:\\Python']

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: How to find my support files (c: vs e:)

    Answer is here, I hope!

Similar Threads

  1. Find all files
    By PankajNeve in forum Symbian
    Replies: 4
    Last Post: 2006-09-15, 12:13
  2. Support for css files - How can I tell???
    By BrianV2 in forum Browsing and Mark-ups
    Replies: 2
    Last Post: 2006-08-22, 22:00
  3. problem with headder files
    By vinayakak in forum Symbian User Interface
    Replies: 3
    Last Post: 2006-01-27, 13:59
  4. Does 7650 really support playing .wav files?
    By norrissmith in forum Mobile Java General
    Replies: 6
    Last Post: 2003-10-29, 09:50
  5. Nokia 7650 support Bluetooth audo?
    By ovjo12 in forum Bluetooth Technology
    Replies: 5
    Last Post: 2003-07-17, 18:50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×