Skip to content

Commit 3ac26bf

Browse files
authored
sprintf (execution_string, "python3 -c \"exec(\\\"import importlib.util;foo = importlib.util.module_from_spec(importlib.util.spec_from_file_location(\\\"createstructure\\\", \\\"/home/castellanidavide/.local/lib/python3.8/site-packages/createstructure/__init__.py\\\"));spec.loader.exec_module(foo);foo.createstructure()\\\")\" -t=%s -o=%s -i=%s %s", TOKEN, ORGANIZATION_NAME, IGNORE, (verbose ? "-v" : ""));
1 parent bba5434 commit 3ac26bf

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

debian/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# for snap
22
cmake_minimum_required(VERSION 3.1)
33
project(createstructure)
4-
CPLUS_INCLUDE_PATH=/usr/include/python3.8
5-
export CPLUS_INCLUDE_PATH
64

75
add_executable(createstructure createstructure.c)
86
install(TARGETS createstructure RUNTIME DESTINATION bin)

debian/createstructure.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,8 @@ void createstructure()
426426
char execution_string[2048] = {'\0'};
427427
#ifdef UBUNTU
428428
//sprintf (execution_string, "python3 -c \"exec(\\\"from createstructure import createstructure;createstructure()\\\")\" -t=%s -s=%s -o=%s -i=%s %s", TOKEN, SOURCES, ORGANIZATION_NAME, IGNORE, (verbose ? "-v" : ""));
429-
sprintf (execution_string, "python3 -c \"exec(\\\"from createstructure import createstructure;createstructure()\\\")\" -t=%s -o=%s -i=%s %s", TOKEN, ORGANIZATION_NAME, IGNORE, (verbose ? "-v" : ""));
429+
//sprintf (execution_string, "python3 -c \"exec(\\\"from createstructure import createstructure;createstructure()\\\")\" -t=%s -o=%s -i=%s %s", TOKEN, ORGANIZATION_NAME, IGNORE, (verbose ? "-v" : ""));
430+
sprintf (execution_string, "python3 -c \"exec(\\\"import importlib.util;foo = importlib.util.module_from_spec(importlib.util.spec_from_file_location(\\\"createstructure\\\", \\\"/home/castellanidavide/.local/lib/python3.8/site-packages/createstructure/__init__.py\\\"));spec.loader.exec_module(foo);foo.createstructure()\\\")\" -t=%s -o=%s -i=%s %s", TOKEN, ORGANIZATION_NAME, IGNORE, (verbose ? "-v" : ""));
430431
#endif // UBUNTU
431432
#ifdef WINDOWS
432433
//sprintf (execution_string, "python.exe -c \"exec(\\\"from createstructure import createstructure;createstructure()\\\")\" -t=%s -s=%s -o=%s -i=%s %s", TOKEN, SOURCES, ORGANIZATION_NAME, IGNORE, (verbose ? "-v" : ""));

0 commit comments

Comments
 (0)