Ignore:
Timestamp:
03/08/12 12:34:02 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
rebase_source:
359355b6e3f6649dbd100ad0730428030d13b649
Message:

Added unicode filename support for the rest of save/load widget dialogs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Unsupervised/OWNxExplorer.py

    r10082 r10466  
    520520                '', 'NetworkX graph as Python pickle (*.gpickle)\nPajek ' + \ 
    521521                'network (*.net)\nGML network (*.gml)') 
     522            filename = unicode(filename) 
    522523            if filename: 
    523524                fn = "" 
    524                 head, tail = os.path.splitext(str(filename)) 
     525                head, tail = os.path.splitext(filename) 
    525526                if not tail: 
    526527                    fn = head + ".net" 
    527528                else: 
    528                     fn = str(filename) 
     529                    fn = filename 
    529530 
    530531                items = self.graph.items() 
Note: See TracChangeset for help on using the changeset viewer.