Browse Source

#4635 use SLIC3R_DIR during get_version

Joseph Lenox 6 years ago
parent
commit
f0a21833f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/common/util.sh

+ 1 - 1
package/common/util.sh

@@ -19,7 +19,7 @@ function set_source_dir ()
 # must be run from the root
 function set_version ()
 {
-SLIC3R_VERSION=$(grep "VERSION" xs/src/libslic3r/libslic3r.h | awk -F\" '{print $2}')
+SLIC3R_VERSION=$(grep "VERSION" ${SLIC3R_DIR}/xs/src/libslic3r/libslic3r.h | awk -F\" '{print $2}')
 }
 # Cache the SHA1 for this build commit.
 function get_commit () {