We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b19bce commit 95c36e1Copy full SHA for 95c36e1
src/ApplicationBuilder.jl
@@ -25,6 +25,21 @@ module App
25
26
using Compat
27
28
+"""
29
+ change_dir_if_bundle()
30
+
31
+Change current working directory to the directory containing the App's
32
+resources.
33
34
+The behavior of this function depends on how it's called. If this code is called
35
+from within an Application compiled by ApplicationBuilder it will `cd` to the
36
+directory containing the App's resources. Otherwise, it will do nothing.
37
38
+Apps that access any files through relative paths should call this function in
39
+their `julia_main()`.
40
+ """
41
+function change_dir_if_bundle end
42
43
@static if Compat.Sys.isapple()
44
if get(ENV, "COMPILING_APPLE_BUNDLE", "false") == "true"
45
function change_dir_if_bundle()
0 commit comments