Skip to content

Commit

Permalink
fix searching for pyscfg.ini in a development "setup.py develop" install
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrohwer committed Jul 29, 2020
1 parent 28486dd commit 7126771
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pysces/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@
for path in os.sys.path:
chkPath = path.split(os.path.sep)[-1]
if chkPath == 'pysces' and path != os.getcwd():
install_dir = path
if os.path.isdir(os.path.join(path, 'pysces')):
# for in-place development with setup.py develop
install_dir = os.path.join(path, 'pysces')
else:
install_dir = path
inipath = os.path.join(install_dir, 'pyscfg.ini')
break
elif chkPath == eggdir:
Expand Down

0 comments on commit 7126771

Please sign in to comment.