Changeset 339 for trunk


Ignore:
Timestamp:
01/26/10 17:22:12 (2 years ago)
Author:
rkuck
Message:

Fixed silly import handling bug in avango.display

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/avango-display/python/avango/display/__init__.py

    r297 r339  
    4242            display_type = arg 
    4343        elif opt in ("-i", "--inspector"): 
    44             import avango.inspector # Only import if request! GTK fails without a proper display 
     44            # Only import if request! GTK fails without a proper display. 
     45            # 'global' statement is used to avoid making avango a local variable and 
     46            # thus inaccessible for the rest of the function! 
     47            global avango 
     48            import avango.inspector 
    4549            inspector = avango.inspector.nodes.Inspector() 
    4650        elif opt in ("-o", "--option"): 
Note: See TracChangeset for help on using the changeset viewer.