File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 3030 "cloudknot."
3131 )
3232
33- conf_context = "load_entry_point('cloudknot', 'console_scripts', 'cloudknot')"
3433try :
35- imported_from_config = ( conf_context in inspect .stack ()[- 1 ].code_context [ 0 ])
34+ context = inspect .stack ()[- 1 ].code_context
3635except AttributeError :
37- imported_from_config = (conf_context in inspect .stack ()[- 1 ][- 2 ][0 ])
36+ context = inspect .stack ()[- 1 ][- 2 ]
37+
38+ conf_context = "load_entry_point('cloudknot', 'console_scripts', 'cloudknot')"
39+ imported_from_config = context is not None and conf_context in context [0 ]
3840
3941if not imported_from_config :
4042 config_file = config .get_config_file ()
Original file line number Diff line number Diff line change 55# Format expected by setup.py and doc/source/conf.py: string of form "X.Y.Z"
66_version_major = 0
77_version_minor = 2
8- _version_micro = '' # use '' for first of series, number for 1 and above
8+ _version_micro = 1 # use '' for first of series, number for 1 and above
99# _version_extra = 'dev'
1010_version_extra = '' # Uncomment this for full releases
1111
You can’t perform that action at this time.
0 commit comments