mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-05-12 11:02:10 -04:00
Excluded pycache from example inclusions
This commit is contained in:
parent
6aca6d671a
commit
f4e3f1cb46
1 changed files with 2 additions and 3 deletions
|
@ -170,10 +170,9 @@ class NomadNetworkApp:
|
|||
else:
|
||||
if not os.path.isdir(self.examplespath):
|
||||
try:
|
||||
os.makedirs(self.examplespath)
|
||||
from distutils.dir_util import copy_tree
|
||||
import shutil
|
||||
examplespath = os.path.join(os.path.dirname(__file__), "examples")
|
||||
copy_tree(examplespath, self.examplespath)
|
||||
shutil.copytree(examplespath, self.examplespath, ignore=shutil.ignore_patterns("__pycache__"))
|
||||
|
||||
except Exception as e:
|
||||
RNS.log("Could not copy examples into the "+self.examplespath+" directory.", RNS.LOG_ERROR)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue