Changeset 1479 for trunk/peppy/main.py

Show
Ignore:
Timestamp:
07/10/08 08:46:43 (4 months ago)
Author:
rob
Message:

Gnome's Nautilus seems to put a // at the beginning of absolute pathnames, so account for that before loading files

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/peppy/main.py

    r1461 r1479  
    996996    @param args: command line argument list 
    997997    """ 
     998    if wx.Platform == "__WXGTK__": 
     999        # Gnome filemanager puts '//' at the beginning of absolute pathnames 
     1000        sys.argv = [arg[1:] if arg.startswith("//") else arg for arg in sys.argv] 
     1001        dprint(sys.argv) 
     1002     
    9981003    peppy = Peppy(redirect=False) 
    9991004