Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use @__FILE__ instead of Pkg.dir #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 9 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
language: cpp
compiler:
- clang
language: julia
julia:
- 0.3
- 0.4
- 0.5
- nightly
notifications:
email: false
env:
matrix:
- JULIAVERSION="juliareleases"
- JULIAVERSION="julianightlies"
before_install:
- sudo add-apt-repository ppa:staticfloat/julia-deps -y
- sudo add-apt-repository ppa:staticfloat/${JULIAVERSION} -y
- sudo apt-get update -qq -y
- sudo apt-get install libpcre3-dev julia -y
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
script:
- julia -e 'Pkg.init(); Pkg.clone(pwd()); Pkg.test("TermWin")'
#script: # the default script setting does the following
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
# - julia -e 'Pkg.init(); Pkg.clone(pwd()); Pkg.test("TermWin")'
2 changes: 1 addition & 1 deletion src/TermWin.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ debugloghandle = nothing

function logstart()
global debugloghandle
debugloghandle = open( joinpath( Pkg.dir( "TermWin" ), "debug.log" ), "a+" )
debugloghandle = open( joinpath( dirname( @__FILE__ ), "..", "debug.log" ), "a+" )
end

function log{T<:AbstractString}( s::T )
Expand Down
2 changes: 1 addition & 1 deletion test/viewertest.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using TermWin

s = open( readall, joinpath( Pkg.dir( "TermWin" ), "src", "TermWin.jl" ) )
s = open( readall, joinpath( dirname( @__FILE__ ), "..", "src", "TermWin.jl" ) )
tshow( s )