mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
Initial revision
This commit is contained in:
parent
df79a1ee19
commit
c636014c43
47 changed files with 5492 additions and 0 deletions
14
Lib/lib-stdwin/anywin.py
Normal file
14
Lib/lib-stdwin/anywin.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Module 'anywin'
|
||||
# Open a file or directory in a window
|
||||
|
||||
import dirwin
|
||||
import filewin
|
||||
import path
|
||||
|
||||
def open(name):
|
||||
print 'opening', name, '...'
|
||||
if path.isdir(name):
|
||||
w = dirwin.open(name)
|
||||
else:
|
||||
w = filewin.open(name)
|
||||
return w
|
||||
Loading…
Add table
Add a link
Reference in a new issue