Skip to content

Commit

Permalink
CODE: removed example_dir, renamed current_dir to cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
arose committed Jan 2, 2016
1 parent e2d72fc commit 14d7e73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions mdsrv/mdsrv.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,9 @@ def open_browser( app, host, port, struc=None, traj=None ):
import webbrowser
url = "http://" + host + ":" + str(port) + "/webapp"
if struc:
url += "?struc=file://current_dir/" + struc
url += "?struc=file://cwd/" + struc
if traj:
url += "&traj=file://current_dir/" + traj
url += "&traj=file://cwd/" + traj
webbrowser.open( url, new=2, autoraise=True )
app.config.BROWSER_OPENED = True

Expand Down Expand Up @@ -363,8 +363,7 @@ def main():
app_config( args.cfg )
DATA_DIRS = app.config.get( "DATA_DIRS", {} )
DATA_DIRS.update( {
"current_dir": os.path.abspath( os.getcwd() ),
"example_data": os.path.join( MODULE_DIR, "data" ),
"cwd": os.path.abspath( os.getcwd() )
} )
app.config[ "DATA_DIRS" ] = DATA_DIRS
def on_bind( host, port ):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from setuptools import setup


VERSION = "0.1.dev1"
VERSION = "0.1.1"
CLASSIFIERS = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
Expand Down

0 comments on commit 14d7e73

Please sign in to comment.