# Headers in this file shall remain intact.

import os
import sys

# Variable templates
LIBDIR = '/usr/local/lib'
PROGRAM_PATH = 'portable.main'

os.chdir(os.path.dirname(__file__))

try:
    # setup the project root
    dir = os.path.dirname(os.path.abspath(__file__))
    if os.path.exists(os.path.join(dir, '..', 'flumotion', '.svn')) or \
       os.path.exists(os.path.join(dir, '..', '.git')):
        root = os.path.split(dir)[0]
    else:
        root = os.path.join(LIBDIR, 'flumotion', 'python')
    sys.path.insert(0, root)

    import warnings
    warnings.filterwarnings('ignore', category=UserWarning)

    # and boot!
    from flumotion.common import boot
    boot.boot(PROGRAM_PATH, gtk=True, gst=True, installReactor=True)

except KeyboardInterrupt:
    print 'Interrupted'
Example #2
0
# Headers in this file shall remain intact.

import os
import sys

# Variable templates
LIBDIR = '/usr/local/lib'
PROGRAM_PATH = 'register.main'
NEEDS_GTK = False
NEEDS_GST = False

try:
    # setup the project root
    dir = os.path.dirname(os.path.abspath(__file__))
    if os.path.exists(os.path.join(dir, '..', 'flumotion', '.svn')) or \
       os.path.exists(os.path.join(dir, '..', '.git')):
        root = os.path.split(dir)[0]
    else:
        root = os.path.join(LIBDIR, 'flumotion', 'python')
    sys.path.insert(0, root)

    import warnings
    warnings.filterwarnings('ignore', category=UserWarning)

    # and boot!
    from flumotion.common import boot
    boot.boot(PROGRAM_PATH, gtk=NEEDS_GTK, gst=NEEDS_GST)

except KeyboardInterrupt:
    print 'Interrupted'
# Headers in this file shall remain intact.

import os
import sys

# Variable templates
LIBDIR = '/usr/local/lib'
PROGRAM_PATH = 'register.main'
NEEDS_GTK=False
NEEDS_GST=False

try:
    # setup the project root
    dir = os.path.dirname(os.path.abspath(__file__))
    if os.path.exists(os.path.join(dir, '..', 'flumotion', '.svn')) or \
       os.path.exists(os.path.join(dir, '..', '.git')):
        root = os.path.split(dir)[0]
    else:
        root = os.path.join(LIBDIR, 'flumotion', 'python')
    sys.path.insert(0, root)

    import warnings
    warnings.filterwarnings('ignore', category=UserWarning)

    # and boot!
    from flumotion.common import boot
    boot.boot(PROGRAM_PATH, gtk=NEEDS_GTK, gst=NEEDS_GST)

except KeyboardInterrupt:
    print 'Interrupted'