Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ recipe-578621.py
File
recipe-578621.py
recipes/Python/578621_Self_Counter/recipe-578621.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
os, sys
2
this = int(os.path.splitext(os.path.basename(sys.argv[0]))[0])
3
os.rename(str(this) +
'.py'
, str(this + 1) +
'.py'
)
4
os.startfile(str(this + 1) +
'.py'
)
Callers
nothing calls this directly
Calls
2
str
Function · 0.85
rename
Method · 0.45
Tested by
no test coverage detected