mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
use std module os
This commit is contained in:
parent
50399ae583
commit
bf1710ac5f
1 changed files with 1 additions and 11 deletions
|
@ -1,17 +1,7 @@
|
||||||
# Utility module to import all modules in the path, in the hope
|
# Utility module to import all modules in the path, in the hope
|
||||||
# that this will update their ".pyc" files.
|
# that this will update their ".pyc" files.
|
||||||
|
|
||||||
# First, see if this is the Mac or UNIX
|
import os
|
||||||
try:
|
|
||||||
import posix
|
|
||||||
os = posix
|
|
||||||
import path
|
|
||||||
except ImportError:
|
|
||||||
import mac
|
|
||||||
os = mac
|
|
||||||
import macpath
|
|
||||||
path = macpath
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Sabotage 'gl' and 'stdwin' to prevent windows popping up...
|
# Sabotage 'gl' and 'stdwin' to prevent windows popping up...
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue