Yeni fonksiyonlar
This commit is contained in:
@@ -108,3 +108,12 @@ def installWithInstallRootdir():
|
|||||||
install_string = 'make INSTALL_ROOT=%s install' % dir_suffix
|
install_string = 'make INSTALL_ROOT=%s install' % dir_suffix
|
||||||
|
|
||||||
os.system(install_string)
|
os.system(install_string)
|
||||||
|
|
||||||
|
def aclocal(parameters = ''):
|
||||||
|
os.system("aclocal %s" % parameters)
|
||||||
|
|
||||||
|
def autoconf(parameters = ''):
|
||||||
|
os.system("autoconf %s" % parameters)
|
||||||
|
|
||||||
|
def automake(parameters = ''):
|
||||||
|
os.system("automake %s" % parameters)
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
import glob
|
import glob
|
||||||
|
import shutil
|
||||||
from tempfile import mkstemp, mkdtemp
|
from tempfile import mkstemp, mkdtemp
|
||||||
|
|
||||||
def sleep(seconds = 5):
|
def sleep(seconds = 5):
|
||||||
@@ -41,3 +42,12 @@ def changeDir(directoryName = ''):
|
|||||||
os.chdir(directoryName)
|
os.chdir(directoryName)
|
||||||
else:
|
else:
|
||||||
os.chdir(os.path.dirname(current))
|
os.chdir(os.path.dirname(current))
|
||||||
|
|
||||||
|
def ls(directory):
|
||||||
|
return os.listdir(directory)
|
||||||
|
|
||||||
|
def move(source, destination):
|
||||||
|
shutil.move(source, destination)
|
||||||
|
|
||||||
|
def export(key, value):
|
||||||
|
os.environ[key] = value
|
||||||
|
|||||||
Reference in New Issue
Block a user