Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix: Resolve symlinks when constructing lib path. #120

Merged
merged 1 commit into from

2 participants

René Küttner Chris Schlaeger
René Küttner

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.

René Küttner rku Fix: Resolve symlinks when constructing lib path.
This fix allows TaskJuggler to find its libraries even when run
trough a symlink.
dffdb95
Chris Schlaeger scrapper merged commit 5801d2d into from
René Küttner rku deleted the 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. René Küttner

    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.
2  bin/tj3
View
@@ -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__)
2  bin/tj3client
View
@@ -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__)
2  bin/tj3d
View
@@ -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__)
2  bin/tj3man
View
@@ -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__)
2  bin/tj3ss_receiver
View
@@ -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__)
2  bin/tj3ss_sender
View
@@ -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__)
2  bin/tj3ts_receiver
View
@@ -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__)
2  bin/tj3ts_sender
View
@@ -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__)
2  bin/tj3ts_summary
View
@@ -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__)
2  bin/tj3webd
View
@@ -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.