Skip to content

Commit 14d7e73

Browse files
committed
CODE: removed example_dir, renamed current_dir to cwd
1 parent e2d72fc commit 14d7e73

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

mdsrv/mdsrv.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@ def open_browser( app, host, port, struc=None, traj=None ):
312312
import webbrowser
313313
url = "http://" + host + ":" + str(port) + "/webapp"
314314
if struc:
315-
url += "?struc=file://current_dir/" + struc
315+
url += "?struc=file://cwd/" + struc
316316
if traj:
317-
url += "&traj=file://current_dir/" + traj
317+
url += "&traj=file://cwd/" + traj
318318
webbrowser.open( url, new=2, autoraise=True )
319319
app.config.BROWSER_OPENED = True
320320

@@ -363,8 +363,7 @@ def main():
363363
app_config( args.cfg )
364364
DATA_DIRS = app.config.get( "DATA_DIRS", {} )
365365
DATA_DIRS.update( {
366-
"current_dir": os.path.abspath( os.getcwd() ),
367-
"example_data": os.path.join( MODULE_DIR, "data" ),
366+
"cwd": os.path.abspath( os.getcwd() )
368367
} )
369368
app.config[ "DATA_DIRS" ] = DATA_DIRS
370369
def on_bind( host, port ):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import setup
44

55

6-
VERSION = "0.1.dev1"
6+
VERSION = "0.1.1"
77
CLASSIFIERS = [
88
"Development Status :: 3 - Alpha",
99
"Intended Audience :: Science/Research",

0 commit comments

Comments
 (0)