File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,22 +104,20 @@ defmodule Pythonx do
104104 :persistent_term . put ( :pythonx_init_state , init_state )
105105 end
106106
107- @ spec init_state ( ) :: map ( )
108107 defp init_state ( ) do
109- :persistent_term . get ( :pythonx_init_state )
108+ :persistent_term . get ( :pythonx_init_state , nil )
110109 end
111110
112- @ spec init_state_from_env ( ) :: String . t ( ) | nil
113111 defp init_state_from_env ( ) , do: System . get_env ( @ install_env_name )
114112
115- @ doc ~s '''
113+ @ doc """
116114 Returns a map with opaque environment variables to initialize Pythonx in
117115 the same way as the current initialization.
118116
119117 When those environment variables are set, Pythonx is initialized on boot.
120118
121119 In particular, this can be used to make Pythonx initialize on `FLAME` nodes.
122- '''
120+ """
123121 @ spec install_env ( ) :: map ( )
124122 def install_env ( ) do
125123 init_state = init_state ( )
@@ -136,11 +134,11 @@ defmodule Pythonx do
136134 % { @ install_env_name => init_state }
137135 end
138136
139- @ doc ~s '''
137+ @ doc """
140138 Returns a list of paths that `install_env/0` initialization depends on.
141139
142140 In particular, this can be used to make Pythonx initialize on `FLAME` nodes.
143- '''
141+ """
144142 @ spec install_paths ( ) :: list ( String . t ( ) )
145143 def install_paths ( ) do
146144 init_state = init_state ( )
You can’t perform that action at this time.
0 commit comments