Skip to content

File.expand_path inside a jar can fail #2967

Closed
@mkristian

Description

@mkristian
script
└── rails

where rails script does something like File.expand_path('../../config/application', __FILE__) which produces

/home/christian/uri:classloader:/config/application

instead of

uri:classloader:/config/application

not going over the root "uri:classloader:/" works, like File.expand_path('../config/application', __FILE__) gives 'uri:classloader:/script/config/application' as expected.

loading the script/rails with classpath:script/rails is even more messed up:
/home/christian/uri:classloader:/classpath:script/config/application

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions