Skip to content

Commit

Permalink
Merge 2d0433c into c5e1385
Browse files Browse the repository at this point in the history
  • Loading branch information
fwitte committed May 14, 2019
2 parents c5e1385 + 2d0433c commit c1ffa2f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
25 changes: 20 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,33 @@ language: python

matrix:
include:
- python: 3.5
- python: 3.7
- name: "python 3.5 on xenial Linux"
python: 3.5
dist: xenial
sudo: true
- name: "python 3.7 on xenial Linux"
python: 3.7
dist: xenial
sudo: true
- name: "Python 3.7.2 on macOS"
os: osx
osx_image: xcode10.2
language: shell
- name: "Python 3.7.3 on Windows"
os: windows
language: shell
before_install: choco install python3
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH

install:
- pip install .
- pip install coveralls
- pip3 install .
- pip3 install coveralls
- pip3 install nose

# command to run tests
script:
- nosetests --with-doctest --with-coverage -c nose.cfg
- python3 -m nose --with-doctest --with-coverage -c nose.cfg || python -m nose --with-doctest --with-coverage -c nose.cfg

after_success:
- coveralls

5 changes: 3 additions & 2 deletions tespy/tools/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2411,12 +2411,13 @@ def modify_path_os(path):
if os.name == 'nt':
# windows
path = path.replace('/', '\\')
if path[0] != '\\' and path[1:2] != ':':
if path[0] != '\\' and path[1:2] != ':' and path[0] != '.':
# relative path
path = '.\\' + path
elif os.name == 'posix':
# linux, max
if path[0] != '/':
path = path.replace('\\', '/')
if path[0] != '/' and path[0] != '.':
# absolute path
path = './' + path
else:
Expand Down

0 comments on commit c1ffa2f

Please sign in to comment.