Questions tagged [load-path]

63 questions
1
vote
2 answers

Where can I see the source code for classes within my current ruby intallation?

I am new to ruby but nonetheless I have installed various versions of Ruby using RVM, Here's the the output of my LOAD_PATH ruby-1.9.2-p136 :001 > puts…
jlstr
  • 2,986
  • 6
  • 43
  • 60
1
vote
0 answers

Rails system tests unable to load a lib file required in a model, file loads fine in development, how can I fix this?

(From chapter 14 in 'Agile Web Development with Rails 6') I am trying to run a system test which touches a model which requires a file from the /lib directory. The file loads fine and the code works fine on localhost in development mode, but as soon…
1
vote
1 answer

What is difference between load_path & auto load_path in rails?

What is difference between load path & auto load path? if i have added any dir to auto-load path then should i need to require that file in my code?
Sunny
  • 468
  • 6
  • 22
1
vote
1 answer

Understanding jinja2.Packageloader()

I have a (mostly working) python3 program using mkepub. Since I need to modify it for my specific purposes I started pulling it into my directory tree (I will send a Pull Request when I'm done since I think my mods could be useful to others, but…
ZioByte
  • 2,690
  • 1
  • 32
  • 68
1
vote
1 answer

adding a subpackage from a different path

I have a python package called zypp. It is generated via swig and the rpm package (called python-zypp) puts it in: rpm -ql python-zypp /usr/lib64/python2.6/site-packages/_zypp.so /usr/lib64/python2.6/site-packages/zypp.py Now, I have a different…
duncan
  • 6,113
  • 3
  • 29
  • 24
1
vote
1 answer

How do I retain installed gems after updating rubygems?

After a recent reinstallation of Ubuntu, I reinstalled RubyGems. The Ubuntu repository grabbed version 1.3.5. Later I found I need the latest version. So I installed the RubyGems update to get to version 1.3.7. The trouble is, upon upgrading gem…
Mario
  • 6,572
  • 3
  • 42
  • 74
1
vote
2 answers

Emacs initialization and load-path

I need some help understanding Emacs initialization and load-path variable construction. So, there is the init file .emacs (or .emacs.d/init.el) file in $HOME, that is loaded first, and at the point this file is about to be read, load-path already…
Student4K
  • 916
  • 2
  • 9
  • 20
1
vote
0 answers

Loading files from a different partition

I'm working at C:\(...)\Desktop, and I need to require my scripts at G:\scripts. I tried to change the $LOAD_PATH: $LOAD_PATH << 'G:\\scripts' require 'filename' and also the argument of require: require 'G:\\scripts\\filename' but I always…
SlySherZ
  • 1,631
  • 1
  • 16
  • 25
1
vote
1 answer

import java class in JRuby

I am trying to import a Java Class in Jruby $ ls bin src $ ls bin/com/practice Test.class $ ls src/com/practice Test.java $ cat src/com/practice/Test.java package com.practice; public class Test { public static String foo(){ return…
CuriousMind
  • 33,537
  • 28
  • 98
  • 137
1
vote
1 answer

Rubygem Executable $LOAD_PATH Issues

I'm writing an IDE in Ruby, and I'm stumped on how to get all my files to get "required" when I run the program on the command line, AND when its installed as a Rubygem. My Rubygem has an executable file named "vr" in it. I need to make this "vr"…
user1182000
  • 1,625
  • 14
  • 12
0
votes
2 answers

Emacs: How do I reverse `load-path`?

The question arises with connection to the problem of adding child dirs to the load-path. Here's a solution. Unfortunately - it seems to revert the load-path. I tried to fix it myself, but can't do and need help. So my question is: how do I revert a…
Adobe
  • 12,967
  • 10
  • 85
  • 126
0
votes
1 answer

$LOAD_PATH does not include working directory?

Why isn't the current directory included in $LOAD_PATH? This seems odd. I just keep adding it, but is there some reason I am not seeing that it's just not automatically included?
slindsey3000
  • 4,053
  • 5
  • 36
  • 56
0
votes
0 answers

Stylesheet not imported when using @use and --load-path

I am trying to compile a SCSS file to CSS, but build fails because it cannot load resources I am using. In my SCSS file, I load a CSS file through @use: the CSS file is inside a package in the node_modules folder. In my package.json file I have a…
Laura Silvani
  • 747
  • 3
  • 9
  • 18
0
votes
1 answer

Load path ivy-* match any series number

I customize load-path for Ivy using a package suffix of -0.13.1: (add-to-list 'load-path "~/.zeroemacs/elpa/ivy-0.13.1/") However, when the ivy package upgraded to 0.14.1, I had to manually modify the load-path to (add-to-list 'load-path…
AbstProcDo
  • 19,953
  • 19
  • 81
  • 138
0
votes
1 answer

Adding Color Themes to Lispbox

I'm new to using Common Lisp and currently using Lispbox. I would like to add a color-theme package to Lispbox running on OSX to change the color theme. I'm currently trying to use the command: (add-to-list 'load-path…
mobydick
  • 151
  • 1
  • 8