Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix: Resolve symlinks when constructing lib path. #120

Merged
merged 1 commit into from

2 participants

@rku

This fix allows TaskJuggler to correctly find its libraries when run through a symlink. Without this patch, the current code will construct a path based on the symlink's location and thus yield an error in most cases.

@rku rku Fix: Resolve symlinks when constructing lib path.
This fix allows TaskJuggler to find its libraries even when run
trough a symlink.
dffdb95
@scrapper scrapper merged commit 5801d2d into taskjuggler:master
@rku rku deleted the rku:libpath-follow-symlinks branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 16, 2013
  1. @rku

    Fix: Resolve symlinks when constructing lib path.

    rku authored
    This fix allows TaskJuggler to find its libraries even when run
    trough a symlink.
This page is out of date. Refresh to see the latest.
View
2  bin/tj3
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$:.unshift File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
require File.basename(__FILE__)
View
2  bin/tj3client
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$:.unshift File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
require File.basename(__FILE__)
View
2  bin/tj3d
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$:.unshift File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
require File.basename(__FILE__)
View
2  bin/tj3man
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$:.unshift File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
require File.basename(__FILE__)
View
2  bin/tj3ss_receiver
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$:.unshift File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
require File.basename(__FILE__)
View
2  bin/tj3ss_sender
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$:.unshift File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
require File.basename(__FILE__)
View
2  bin/tj3ts_receiver
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$:.unshift File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
require File.basename(__FILE__)
View
2  bin/tj3ts_sender
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$:.unshift File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
require File.basename(__FILE__)
View
2  bin/tj3ts_summary
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$:.unshift File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
require File.basename(__FILE__)
View
2  bin/tj3webd
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$:.unshift File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
require File.basename(__FILE__)
Something went wrong with that request. Please try again.