mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-26 20:01:13 +01:00
Fixed the 'missing shutdown function' error
This commit is contained in:
parent
4958b4ec47
commit
6eec35c1de
@ -32,7 +32,9 @@ and output files. While a typical script may require the following::
|
||||
|
||||
this tool will make the process much easier, for example::
|
||||
|
||||
from waflib.extras import unc
|
||||
def configure(conf):
|
||||
conf.load('unc') # do not import the module directly
|
||||
|
||||
def build(bld):
|
||||
def myfun(tsk):
|
||||
tsk.outputs[0].write("data")
|
||||
@ -45,7 +47,7 @@ this tool will make the process much easier, for example::
|
||||
"""
|
||||
|
||||
import os
|
||||
from waflib import Node, Utils
|
||||
from waflib import Node, Utils, Context
|
||||
|
||||
def find_resource(self, lst):
|
||||
if isinstance(lst, str):
|
||||
@ -104,3 +106,6 @@ if Utils.is_win32:
|
||||
Node.Node.abspath_orig = Node.Node.abspath
|
||||
Node.Node.abspath = abspath
|
||||
|
||||
for k in list(Context.cache_modules.keys()):
|
||||
Context.cache_modules["\\\\?\\" + k] = Context.cache_modules[k]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user