Skip to content
Snippets Groups Projects
Commit 63d1de4e authored by mariva00's avatar mariva00
Browse files

Added custom working directory option

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2723 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent c8c57dd9
No related branches found
No related tags found
No related merge requests found
import __main__ import __main__
import sys import sys
import os.path
import optparse import optparse
from ost import io, mol, seq, geom, conop, gui from ost import io, mol, seq, geom, conop, gui, settings
import ost import ost
try: try:
from ost import img from ost import img
...@@ -197,6 +198,11 @@ else: ...@@ -197,6 +198,11 @@ else:
rcfile.close() rcfile.close()
PushVerbosityLevel(options.vlevel) PushVerbosityLevel(options.vlevel)
working_dir=settings.GetValue("DNG_WORKING_DIR",None)
if working_dir != None and os.path.isdir(working_dir):
os.chdir(working_dir)
_InitFrontEnd() _InitFrontEnd()
if len(loading_list)!=0 or len(options.pdb_ids)!=0: if len(loading_list)!=0 or len(options.pdb_ids)!=0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment