File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 30
30
"cloudknot."
31
31
)
32
32
33
- conf_context = "load_entry_point('cloudknot', 'console_scripts', 'cloudknot')"
34
33
try :
35
- imported_from_config = ( conf_context in inspect .stack ()[- 1 ].code_context [ 0 ])
34
+ context = inspect .stack ()[- 1 ].code_context
36
35
except 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 ]
38
40
39
41
if not imported_from_config :
40
42
config_file = config .get_config_file ()
Original file line number Diff line number Diff line change 5
5
# Format expected by setup.py and doc/source/conf.py: string of form "X.Y.Z"
6
6
_version_major = 0
7
7
_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
9
9
# _version_extra = 'dev'
10
10
_version_extra = '' # Uncomment this for full releases
11
11
You can’t perform that action at this time.
0 commit comments