Fix workspace root when no vimspector conf - use dir of current file
This commit is contained in:
parent
267f202dad
commit
68a45b5771
3 changed files with 33 additions and 140 deletions
29
support/test/python/no_conf/main.py
Executable file
29
support/test/python/no_conf/main.py
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
|
||||
class TestClass( object ):
|
||||
def __init__( self, value ):
|
||||
self._var = value
|
||||
try:
|
||||
self.DoSomething()
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
def DoSomething( self ):
|
||||
for i in range( 0, 100 ):
|
||||
if i < self._var:
|
||||
print( '{0} is less than the value'.format( i ) )
|
||||
else:
|
||||
print( '{0} might be more'.format( i ) )
|
||||
|
||||
raise ValueError( 'Done' )
|
||||
|
||||
|
||||
def Main():
|
||||
t = TestClass( 18 )
|
||||
|
||||
t._var = 99
|
||||
t.DoSomething()
|
||||
|
||||
|
||||
Main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue