From 18253318d8771f72c2c2bc15d3cd8111796f6a9a Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Thu, 14 Nov 2013 18:48:54 +0400 Subject: [PATCH] rendre accessible cgiupload.py comme librairie --- lib/uinst/conf | 1 + ulib/cgiupload | 8 ++++++++ cgiupload.py => ulib/support/cgiupload.py | 0 3 files changed, 9 insertions(+) create mode 100644 ulib/cgiupload rename cgiupload.py => ulib/support/cgiupload.py (100%) diff --git a/lib/uinst/conf b/lib/uinst/conf index 228a0e3..dc50bed 100644 --- a/lib/uinst/conf +++ b/lib/uinst/conf @@ -11,6 +11,7 @@ rm -rf pyulib/{build,devel,migrate,test} for i in plver plbck uencdetect urandomize umail wofixsql; do ln -s lib/pywrapper "$i" done +ln -s ulib/support/cgiupload.py # liens pour les scripts shell for i in cg cgs; do diff --git a/ulib/cgiupload b/ulib/cgiupload new file mode 100644 index 0000000..3d6e4d9 --- /dev/null +++ b/ulib/cgiupload @@ -0,0 +1,8 @@ +##@cooked comments # -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8 +## Fonction de support pour cgiupload +##@cooked nocomments +##@require ulib +uprovide cgiupload +urequire ulib + +function cgiupload() { "$ULIBDIR/support/cgiupload.py" "$@"; } diff --git a/cgiupload.py b/ulib/support/cgiupload.py similarity index 100% rename from cgiupload.py rename to ulib/support/cgiupload.py