Changeset 3642

Show
Ignore:
Timestamp:
11/08/07 07:44:57 (1 year ago)
Author:
ed
Message:

Fixes a problem when opening DaboDemo? from the command line with the runtime engine. If you didn't start in the demo directory, it would not find the .cdxml file.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/demo/DaboDemo.py

    r3530 r3642  
    11#!/usr/bin/env python 
    22# -*- coding: utf-8 -*- 
    3  
    43import sys 
    54import os 
     
    1110    # The splash screen looks great on Mac/Win, and crappy on Linux. 
    1211    useSplash = "linux" not in platform.platform().lower() 
    13     mfc = os.path.join(os.path.split(sys.argv[0])[0], "DaboDemo.cdxml") 
     12    mfc = "DaboDemo.cdxml" 
     13    if not os.path.exists(mfc): 
     14        mfc = os.path.join(os.path.split(sys.argv[0])[0], mfc) 
    1415 
    1516    app = dabo.dApp(showSplashScreen=useSplash, splashTimeout=3000,