Skip to content
Snippets Groups Projects
Commit 3f5603dd authored by Marco Biasini's avatar Marco Biasini Committed by Andreas Schenk
Browse files

remove some unused scripts

parent 1b3e8042
Branches
Tags
No related merge requests found
......@@ -29,7 +29,6 @@ endif()
set(INIT_SCRIPTS
init.py
init_cl.py
init_iplt.py
)
copy_if_different("./" "${STAGE_DIR}/${LIB_DIR}/openstructure"
"${INIT_SCRIPTS}" "python init scripts" ost_scripts)
......
#!/bin/bash
#------------------------------------------------------------------------------
# This file is part of the OpenStructure project <www.openstructure.org>
#
# Copyright (C) 2008-2011 by the OpenStructure authors
#
# This library is free software; you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 3.0 of the License, or (at your option)
# any later version.
# This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this library; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#------------------------------------------------------------------------------
#
# convenience wrapper for non-gui dng
#
# Self detect important directories
SCRIPT_NAME=$0
BIN_DIR=`dirname $SCRIPT_NAME`
export DNG_ROOT=$BIN_DIR/..
export PATH=$BIN_DIR:$PATH
# set ld_library_path and pythonhome for bundle (commented except in linux bundles)
#export LD_LIBRARY_PATH=$DNG_ROOT/@LIBDIR@:$LD_LIBRARY_PATH
#export PYTHONPATH=$DING_ROOT/@LIBDIR@/python2.6
# retrieve absolute path to python executable
pyexec=""
if [ -z "$DNG_ATTACH_VALGRIND" ]; then
pyexec="@PYTHON_BINARY@"
else
pyexec="valgrind --leak-check=full @PYTHON_BINARY@"
fi
if [ ! -f "$pyexec" ]; then
echo "Error: Python executable '$pyexec' not found!"
exit
fi
set -o noglob
# decide whether to start interactively or not
# interactive mode can be forced by setting -i as a dng_cl option
interactive=""
if [ $# == 0 ];then
interactive="-i"
else
opts=""
for argument in $*;do
if [ $argument == "-i" ] ;then
interactive="-i"
else
opts=$opts" "$argument
fi
done
fi
# finally pass control to python instance
exec $pyexec $interactive -c "
import sys, os, platform
if platform.machine()=='x86_64':
sys.path.insert(0, os.getenv('DNG_ROOT')+'/lib64/dng/pymod')
else:
sys.path.insert(0,os.getenv('DNG_ROOT')+'/lib/dng/pymod')
from dng import io, mol, seq, gfx, SetPrefixPath
try:
from dng import img
except ImportError:
pass
SetPrefixPath(os.getenv('DNG_ROOT'))
import os.path
HistoryFile=os.path.expanduser('~/.dng_history')
InGUIMode=False
#try:
# import readline, rlcompleter
# def SaveHistory(historyPath):
# readline.write_history_file(historyPath)
#
# readline.parse_and_bind('tab: complete')
# if os.path.isfile(HistoryFile):
# readline.read_history_file(HistoryFile)
#except ImportError:
# pass
gfx.set_offscreen_mode()
sys.ps1='dng> '
sys.ps2='..... '
print ''
sys.argv=sys.argv[1:]
_dngrc=os.path.join(os.getenv('HOME'), '.dngrc')
if os.path.exists(_dngrc):
try:
exec(open(_dngrc))
except Exception, e:
print e
if(len(sys.argv)>0):
script=sys.argv[0]
execfile(script)
" $opts
@ECHO OFF
REM ------------------------------------------------------------------------------
REM This file is part of the OpenStructure project <www.openstructure.org>
REM
REM Copyright (C) 2008-2011 by the OpenStructure authors
REM
REM This library is free software; you can redistribute it and/or modify it under
REM the terms of the GNU Lesser General Public License as published by the Free
REM Software Foundation; either version 3.0 of the License, or (at your option)
REM any later version.
REM This library is distributed in the hope that it will be useful, but WITHOUT
REM ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
REM FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
REM details.
REM
REM You should have received a copy of the GNU Lesser General Public License
REM along with this library; if not, write to the Free Software Foundation, Inc.,
REM 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
REM ------------------------------------------------------------------------------
REM Windows startup script for a protein-centric user interface
REM Author: Juergen Haas
REM Self detect important directories
set SCRIPT_NAME=%0%
set BIN_DIR=%~dp0
echo %BIN_DIR%
set DNG_ROOT=%BIN_DIR%\..
set PATH=%BIN_DIR%;%DNG_ROOT%\@LIBDIR@\@BUILD_TYPE@;%DNG_ROOT%\@LIBDIR@;%DNG_ROOT%\bin\@BUILD_TYPE@;%PATH%
"%BIN_DIR%\@BUILD_TYPE@\gosty.exe" "%DNG_ROOT%\@LIBDIR@\openstructure\init_iplt.py" ost %*
#!/bin/bash
#------------------------------------------------------------------------------
# This file is part of the OpenStructure project <www.openstructure.org>
#
# Copyright (C) 2008-2011 by the OpenStructure authors
#
# This library is free software; you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 3.0 of the License, or (at your option)
# any later version.
# This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this library; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#------------------------------------------------------------------------------
# Startup script for a protein-centric user interface
# Author: Andreas Schenk, Marco Biasini
# Self detect important directories
SCRIPT_NAME=$0
BIN_DIR=`dirname $SCRIPT_NAME`
export DNG_ROOT=$BIN_DIR/..
export PATH=$BIN_DIR:$PATH
export LD_LIBRARY_PATH=$DNG_ROOT/@LIBDIR@:$LD_LIBRARY_PATH
# set pythonhome for bundle (commented except in linux bundles)
#export PYTHONHOME=$DNG_ROOT
# store code in shell variable. Reduces the actuall call to gosty to just one
# line. If the HERE documnt is fed directly into gosty, the backtrace shows the
# full command in case of a segfault which is very confusing and not helpful
# at all
gosty $DNG_ROOT/@LIBDIR@/openstructure/init_iplt.py img $@
from ost import gui
import sip
from ost.img import *
import ost.img.alg as alg
from PyQt4 import QtGui, QtCore
from ost.gui.init_menubar import _InitMenuBar
def Viewer(image,title=""):
app=gui.GostyApp.Instance()
viewer=app.CreateDataViewer(image)
app.perspective.main_area.AddWidget(title, viewer)
return viewer
def _InitPanels(app, panels):
panels.AddWidgetToPool('ost.gui.PythonShell', 1)
if not panels.Restore("img/ui/perspective/panels"):
panels.AddWidget(gui.PanelPosition.BOTTOM_PANEL, app.py_shell)
def _InitIPLTNextGen():
app=gui.GostyApp.Instance()
app.SetAppTitle("IPLT - Iplt Next Generation")
main_area=app.perspective.main_area
_InitPanels(app, app.perspective.panels)
_InitMenuBar(app.perspective.GetMenuBar())
app.perspective.Restore()
_InitIPLTNextGen()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment